< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DCTree.java

Print this page




 558             this.kind = kind;
 559             this.body = body;
 560         }
 561 
 562         @Override @DefinedBy(Api.COMPILER_TREE)
 563         public Kind getKind() {
 564             return kind;
 565         }
 566 
 567         @Override @DefinedBy(Api.COMPILER_TREE)
 568         public <R, D> R accept(DocTreeVisitor<R, D> v, D d) {
 569             return v.visitLiteral(this, d);
 570         }
 571 
 572         @Override @DefinedBy(Api.COMPILER_TREE)
 573         public DCText getBody() {
 574             return body;
 575         }
 576     }
 577 


























 578     public static class DCParam extends DCBlockTag implements ParamTree {
 579         public final boolean isTypeParameter;
 580         public final DCIdentifier name;
 581         public final List<DCTree> description;
 582 
 583         DCParam(boolean isTypeParameter, DCIdentifier name, List<DCTree> description) {
 584             this.isTypeParameter = isTypeParameter;
 585             this.name = name;
 586             this.description = description;
 587         }
 588 
 589         @Override @DefinedBy(Api.COMPILER_TREE)
 590         public Kind getKind() {
 591             return Kind.PARAM;
 592         }
 593 
 594         @Override @DefinedBy(Api.COMPILER_TREE)
 595         public <R, D> R accept(DocTreeVisitor<R, D> v, D d) {
 596             return v.visitParam(this, d);
 597         }




 558             this.kind = kind;
 559             this.body = body;
 560         }
 561 
 562         @Override @DefinedBy(Api.COMPILER_TREE)
 563         public Kind getKind() {
 564             return kind;
 565         }
 566 
 567         @Override @DefinedBy(Api.COMPILER_TREE)
 568         public <R, D> R accept(DocTreeVisitor<R, D> v, D d) {
 569             return v.visitLiteral(this, d);
 570         }
 571 
 572         @Override @DefinedBy(Api.COMPILER_TREE)
 573         public DCText getBody() {
 574             return body;
 575         }
 576     }
 577 
 578     public static class DCAccessor extends DCInlineTag implements AccessorTree {
 579         public final Kind kind;
 580         public final List<? extends DocTree> description;
 581 
 582         DCAccessor(Kind kind, List<? extends DocTree> description) {
 583             Assert.check(kind == Kind.GETTER || kind == Kind.SETTER);
 584             this.kind = kind;
 585             this.description = description;
 586         }
 587 
 588         @Override @DefinedBy(Api.COMPILER_TREE)
 589         public Kind getKind() {
 590             return kind;
 591         }
 592 
 593         @Override @DefinedBy(Api.COMPILER_TREE)
 594         public <R, D> R accept(DocTreeVisitor<R, D> v, D d) {
 595             return v.visitAccessor(this, d);
 596         }
 597 
 598         @Override @DefinedBy(Api.COMPILER_TREE)
 599         public List<? extends DocTree> getDescription() {
 600             return description;
 601         }
 602     }
 603 
 604     public static class DCParam extends DCBlockTag implements ParamTree {
 605         public final boolean isTypeParameter;
 606         public final DCIdentifier name;
 607         public final List<DCTree> description;
 608 
 609         DCParam(boolean isTypeParameter, DCIdentifier name, List<DCTree> description) {
 610             this.isTypeParameter = isTypeParameter;
 611             this.name = name;
 612             this.description = description;
 613         }
 614 
 615         @Override @DefinedBy(Api.COMPILER_TREE)
 616         public Kind getKind() {
 617             return Kind.PARAM;
 618         }
 619 
 620         @Override @DefinedBy(Api.COMPILER_TREE)
 621         public <R, D> R accept(DocTreeVisitor<R, D> v, D d) {
 622             return v.visitParam(this, d);
 623         }


< prev index next >