Lines Matching refs:off

174     private void prPackage(int off, PackageDoc p) throws IOException {
175 prln(off, "package " + p);
176 prAnnotations(off + 2, p.annotations());
179 private void prClass(int off, ClassDoc cd) throws IOException {
180 prln(off,
183 prln(off + 2, "name: " + cd.simpleTypeName() + " / " +
185 prAnnotations(off + 2, cd.annotations());
186 prLabel(off + 2, "type parameters");
188 prln(off + 4, t);
189 prParamTags(off + 2, cd.typeParamTags());
190 prLabel(off + 2, "nested in");
191 prln(off + 4, cd.containingClass());
192 prLabel(off + 2, "superclass");
193 prln(off + 4, cd.superclassType());
194 prLabel(off + 2, "interfaces");
198 prln(off + 4, t);
199 prLabel(off + 2, "enum constants");
201 prln(off + 4, f.name());
202 prLabel(off + 2, "fields");
204 prln(off + 4, f.type() + " " + f.name());
205 prLabel(off + 2, "constructors");
207 prln(off + 4, c.name() + c.flatSignature());
208 prLabel(off + 2, "methods");
210 prln(off + 4, typeUseString(m.returnType()) + " " +
214 private void prAnnotationType(int off, AnnotationTypeDoc at)
216 prln(off, "@interface " + at);
217 prAnnotations(off + 2, at.annotations());
218 prLabel(off + 2, "elements");
223 prln(off + 4, typeUseString(e.returnType()) + " " + e.name() +
228 private void prField(int off, FieldDoc f) throws IOException {
229 prln(off, "field " + typeUseString(f.type()) + " " + f.name());
230 prAnnotations(off + 2, f.annotations());
233 private void prParameter(int off, Parameter p) throws IOException {
234 prln(off, "parameter " + p);
235 prAnnotations(off + 2, p.annotations());
238 private void prMethod(int off, MethodDoc m) throws IOException {
239 prExecutable(off, m);
240 prLabel(off + 2, "returns");
241 prln(off + 4, typeUseString(m.returnType()));
242 prLabel(off + 2, "overridden type");
243 prln(off + 4, m.overriddenType());
246 private void prExecutable(int off, ExecutableMemberDoc m)
249 prln(off + 2, "signature: " + m.flatSignature());
250 prln(off + 2, " " + m.signature());
252 prAnnotations(off + 2, m.annotations());
253 prParamTags(off + 2, m.typeParamTags());
254 prParamTags(off + 2, m.paramTags());
255 prLabel(off + 2, "type parameters");
257 prln(off + 4, t);
258 prLabel(off + 2, "throws");
262 prln(off + 4, t);
265 private void prAnnotations(int off, AnnotationDesc[] as)
267 prLabel(off, "annotations");
269 prln(off + 2, a.toString());
272 private void prParamTags(int off, ParamTag tags[]) throws IOException {
274 prParamTag(off, tag);
277 private void prParamTag(int off, ParamTag tag) throws IOException {
280 prln(off, "@param " + name + " " + tag.parameterComment());
295 void prLabel(int off, String s) {
296 while (!labels.isEmpty() && labels.get(0).off >= off)
298 labels.add(0, new Line(off, s));
301 // Print queued labels with offsets less than "off".
302 void popLabels(int off) throws IOException {
305 if (label.off < off)
306 prln(label.off, label.o + ":");
311 void pr(int off, Object o) throws IOException {
312 popLabels(off);
313 for (int i = 0; i < off; i++)
320 void prln(int off, Object o) throws IOException {
322 pr(off, o);
334 int off;
336 Line(int off, Object o) { this.off = off; this.o = o; }