< prev index next >

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

Print this page




  38 import javax.tools.JavaFileObject;
  39 
  40 import com.sun.source.doctree.AttributeTree.ValueKind;
  41 import com.sun.source.doctree.DocCommentTree;
  42 import com.sun.source.doctree.DocTree;
  43 import com.sun.source.doctree.DocTree.Kind;
  44 import com.sun.source.doctree.EndElementTree;
  45 import com.sun.source.doctree.IdentifierTree;
  46 import com.sun.source.doctree.ReferenceTree;
  47 import com.sun.source.doctree.StartElementTree;
  48 import com.sun.source.doctree.TextTree;
  49 import com.sun.source.doctree.ProvidesTree;
  50 import com.sun.source.doctree.UsesTree;
  51 import com.sun.source.util.DocTreeFactory;
  52 import com.sun.tools.doclint.HtmlTag;
  53 import com.sun.tools.javac.api.JavacTrees;
  54 import com.sun.tools.javac.parser.ParserFactory;
  55 import com.sun.tools.javac.parser.ReferenceParser;
  56 import com.sun.tools.javac.parser.Tokens.Comment;
  57 import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle;

  58 import com.sun.tools.javac.tree.DCTree.DCAttribute;
  59 import com.sun.tools.javac.tree.DCTree.DCAuthor;
  60 import com.sun.tools.javac.tree.DCTree.DCComment;
  61 import com.sun.tools.javac.tree.DCTree.DCDeprecated;
  62 import com.sun.tools.javac.tree.DCTree.DCDocComment;
  63 import com.sun.tools.javac.tree.DCTree.DCDocRoot;
  64 import com.sun.tools.javac.tree.DCTree.DCDocType;
  65 import com.sun.tools.javac.tree.DCTree.DCEndElement;
  66 import com.sun.tools.javac.tree.DCTree.DCEntity;
  67 import com.sun.tools.javac.tree.DCTree.DCErroneous;
  68 import com.sun.tools.javac.tree.DCTree.DCHidden;
  69 import com.sun.tools.javac.tree.DCTree.DCIdentifier;
  70 import com.sun.tools.javac.tree.DCTree.DCIndex;
  71 import com.sun.tools.javac.tree.DCTree.DCInheritDoc;
  72 import com.sun.tools.javac.tree.DCTree.DCLink;
  73 import com.sun.tools.javac.tree.DCTree.DCLiteral;
  74 import com.sun.tools.javac.tree.DCTree.DCParam;
  75 import com.sun.tools.javac.tree.DCTree.DCProvides;
  76 import com.sun.tools.javac.tree.DCTree.DCReference;
  77 import com.sun.tools.javac.tree.DCTree.DCReturn;


 339         return tree;
 340     }
 341 
 342     @Override @DefinedBy(Api.COMPILER_TREE)
 343     public DCLink newLinkTree(ReferenceTree ref, List<? extends DocTree> label) {
 344         DCLink tree = new DCLink(Kind.LINK, (DCReference) ref, cast(label));
 345         tree.pos = pos;
 346         return tree;
 347     }
 348 
 349     @Override @DefinedBy(Api.COMPILER_TREE)
 350     public DCLink newLinkPlainTree(ReferenceTree ref, List<? extends DocTree> label) {
 351         DCLink tree = new DCLink(Kind.LINK_PLAIN, (DCReference) ref, cast(label));
 352         tree.pos = pos;
 353         return tree;
 354     }
 355 
 356     @Override @DefinedBy(Api.COMPILER_TREE)
 357     public DCLiteral newLiteralTree(TextTree text) {
 358         DCLiteral tree = new DCLiteral(Kind.LITERAL, (DCText) text);







 359         tree.pos = pos;
 360         return tree;
 361     }
 362 
 363     @Override @DefinedBy(Api.COMPILER_TREE)
 364     public DCParam newParamTree(boolean isTypeParameter, IdentifierTree name, List<? extends DocTree> description) {
 365         DCParam tree = new DCParam(isTypeParameter, (DCIdentifier) name, cast(description));
 366         tree.pos = pos;
 367         return tree;
 368     }
 369 
 370     @Override @DefinedBy(Api.COMPILER_TREE)
 371     public DCProvides newProvidesTree(ReferenceTree name, List<? extends DocTree> description) {
 372         DCProvides tree = new DCProvides((DCReference) name, cast(description));
 373         tree.pos = pos;
 374         return tree;
 375     }
 376 
 377     @Override @DefinedBy(Api.COMPILER_TREE)
 378     public DCReference newReferenceTree(String signature) {




  38 import javax.tools.JavaFileObject;
  39 
  40 import com.sun.source.doctree.AttributeTree.ValueKind;
  41 import com.sun.source.doctree.DocCommentTree;
  42 import com.sun.source.doctree.DocTree;
  43 import com.sun.source.doctree.DocTree.Kind;
  44 import com.sun.source.doctree.EndElementTree;
  45 import com.sun.source.doctree.IdentifierTree;
  46 import com.sun.source.doctree.ReferenceTree;
  47 import com.sun.source.doctree.StartElementTree;
  48 import com.sun.source.doctree.TextTree;
  49 import com.sun.source.doctree.ProvidesTree;
  50 import com.sun.source.doctree.UsesTree;
  51 import com.sun.source.util.DocTreeFactory;
  52 import com.sun.tools.doclint.HtmlTag;
  53 import com.sun.tools.javac.api.JavacTrees;
  54 import com.sun.tools.javac.parser.ParserFactory;
  55 import com.sun.tools.javac.parser.ReferenceParser;
  56 import com.sun.tools.javac.parser.Tokens.Comment;
  57 import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle;
  58 import com.sun.tools.javac.tree.DCTree.DCAccessor;
  59 import com.sun.tools.javac.tree.DCTree.DCAttribute;
  60 import com.sun.tools.javac.tree.DCTree.DCAuthor;
  61 import com.sun.tools.javac.tree.DCTree.DCComment;
  62 import com.sun.tools.javac.tree.DCTree.DCDeprecated;
  63 import com.sun.tools.javac.tree.DCTree.DCDocComment;
  64 import com.sun.tools.javac.tree.DCTree.DCDocRoot;
  65 import com.sun.tools.javac.tree.DCTree.DCDocType;
  66 import com.sun.tools.javac.tree.DCTree.DCEndElement;
  67 import com.sun.tools.javac.tree.DCTree.DCEntity;
  68 import com.sun.tools.javac.tree.DCTree.DCErroneous;
  69 import com.sun.tools.javac.tree.DCTree.DCHidden;
  70 import com.sun.tools.javac.tree.DCTree.DCIdentifier;
  71 import com.sun.tools.javac.tree.DCTree.DCIndex;
  72 import com.sun.tools.javac.tree.DCTree.DCInheritDoc;
  73 import com.sun.tools.javac.tree.DCTree.DCLink;
  74 import com.sun.tools.javac.tree.DCTree.DCLiteral;
  75 import com.sun.tools.javac.tree.DCTree.DCParam;
  76 import com.sun.tools.javac.tree.DCTree.DCProvides;
  77 import com.sun.tools.javac.tree.DCTree.DCReference;
  78 import com.sun.tools.javac.tree.DCTree.DCReturn;


 340         return tree;
 341     }
 342 
 343     @Override @DefinedBy(Api.COMPILER_TREE)
 344     public DCLink newLinkTree(ReferenceTree ref, List<? extends DocTree> label) {
 345         DCLink tree = new DCLink(Kind.LINK, (DCReference) ref, cast(label));
 346         tree.pos = pos;
 347         return tree;
 348     }
 349 
 350     @Override @DefinedBy(Api.COMPILER_TREE)
 351     public DCLink newLinkPlainTree(ReferenceTree ref, List<? extends DocTree> label) {
 352         DCLink tree = new DCLink(Kind.LINK_PLAIN, (DCReference) ref, cast(label));
 353         tree.pos = pos;
 354         return tree;
 355     }
 356 
 357     @Override @DefinedBy(Api.COMPILER_TREE)
 358     public DCLiteral newLiteralTree(TextTree text) {
 359         DCLiteral tree = new DCLiteral(Kind.LITERAL, (DCText) text);
 360         tree.pos = pos;
 361         return tree;
 362     }
 363 
 364     @Override @DefinedBy(Api.COMPILER_TREE)
 365     public DCAccessor newAccessorTree(Kind kind, List<? extends DocTree> desc) {
 366         DCAccessor tree = new DCAccessor(kind, desc);
 367         tree.pos = pos;
 368         return tree;
 369     }
 370 
 371     @Override @DefinedBy(Api.COMPILER_TREE)
 372     public DCParam newParamTree(boolean isTypeParameter, IdentifierTree name, List<? extends DocTree> description) {
 373         DCParam tree = new DCParam(isTypeParameter, (DCIdentifier) name, cast(description));
 374         tree.pos = pos;
 375         return tree;
 376     }
 377 
 378     @Override @DefinedBy(Api.COMPILER_TREE)
 379     public DCProvides newProvidesTree(ReferenceTree name, List<? extends DocTree> description) {
 380         DCProvides tree = new DCProvides((DCReference) name, cast(description));
 381         tree.pos = pos;
 382         return tree;
 383     }
 384 
 385     @Override @DefinedBy(Api.COMPILER_TREE)
 386     public DCReference newReferenceTree(String signature) {


< prev index next >