Uses of Interface
com.sun.source.doctree.DocTree
| Package | Description |
|---|---|
| com.sun.source.doctree |
Provides interfaces to represent documentation comments as abstract syntax
trees (AST).
|
| com.sun.source.util |
Provides utilities for operations on abstract syntax trees (AST).
|
| jdk.javadoc.doclet |
The Doclet API provides an environment which, in conjunction with
the Language Model API and Compiler Tree API, allows clients
to inspect the source-level structures of programs and
libraries, including API comments embedded in the source.
|
-
Uses of DocTree in com.sun.source.doctree
Subinterfaces of DocTree in com.sun.source.doctree Modifier and Type Interface Description interfaceAttributeTreeA tree node for an attribute in an HTML element.interfaceAuthorTreeA tree node for an @author block tag.interfaceBlockTagTreeA tree node used as the base class for the different types of block tags.interfaceCommentTreeAn embedded HTML comment.interfaceDeprecatedTreeA tree node for an @deprecated block tag.interfaceDocCommentTreeThe top level representation of a documentation comment.interfaceDocRootTreeA tree node for an @docroot inline tag.interfaceDocTypeTreeA tree node for adoctypedeclaration.interfaceEndElementTreeA tree node for the end of an HTML element.interfaceEntityTreeA tree node for an HTML entity.interfaceErroneousTreeA tree node to stand in for a malformed textinterfaceHiddenTreeA tree node for an @hidden block tag.interfaceIdentifierTreeAn identifier in a documentation comment.interfaceIndexTreeA tree node for an @index or @index inline tag.interfaceInheritDocTreeA tree node for an @inheritDoc inline tag.interfaceInlineTagTreeA tree node used as the base class for the different types of inline tags.interfaceLinkTreeA tree node for an @link or @linkplain inline tag.interfaceLiteralTreeA tree node for an @literal or @code inline tag.interfaceParamTreeA tree node for an @param block tag.interfaceProvidesTreeA tree node for a @provides block tag.interfaceReferenceTreeA tree node for a reference to a Java language element.interfaceReturnTreeA tree node for an @return block tag.interfaceSeeTreeA tree node for an @see block tag.interfaceSerialDataTreeA tree node for an @serialData block tag.interfaceSerialFieldTreeA tree node for an @serialData block tag.interfaceSerialTreeA tree node for an @serial block tag.interfaceSinceTreeA tree node for an @since block tag.interfaceStartElementTreeA tree node for the start of an HTML element.interfaceSummaryTreeA tree node for an @summary inline tag.interfaceSystemPropertyTreeA tree node for an@systemPropertyinline tag.interfaceTextTreeA tree node for plain text.interfaceThrowsTreeA tree node for an @exception or @throws block tag.interfaceUnknownBlockTagTreeA tree node for an unrecognized inline tag.interfaceUnknownInlineTagTreeA tree node for an unrecognized inline tag.interfaceUsesTreeA tree node for an @uses block tag.interfaceValueTreeA tree node for an @value inline tag.interfaceVersionTreeA tree node for an @version block tag.Methods in com.sun.source.doctree that return DocTree Modifier and Type Method Description DocTreeIndexTree. getSearchTerm()Returns the specified search term.Methods in com.sun.source.doctree that return types with arguments of type DocTree Modifier and Type Method Description List<? extends DocTree>StartElementTree. getAttributes()Returns any attributes defined by this element.List<? extends DocTree>DocCommentTree. getBlockTags()Returns the block tags for a documentation comment.List<? extends DocTree>DeprecatedTree. getBody()Returns the description explaining why an item is deprecated.List<? extends DocTree>DocCommentTree. getBody()Returns the body of a documentation comment, appearing after the first sentence, and before any block tags.List<? extends DocTree>HiddenTree. getBody()Returns the description explaining why an item is hidden.List<? extends DocTree>SinceTree. getBody()Returns the text explaining the availability of the item being documented.List<? extends DocTree>VersionTree. getBody()Returns the body of the tag.List<? extends DocTree>UnknownBlockTagTree. getContent()Returns the content of an unrecognized block tag.List<? extends DocTree>UnknownInlineTagTree. getContent()Returns the content of an unrecognized inline tag.List<? extends DocTree>IndexTree. getDescription()Returns the description, if any.List<? extends DocTree>ParamTree. getDescription()Returns the description of the parameter.List<? extends DocTree>ProvidesTree. getDescription()Returns a description of the service type being provided by the module.List<? extends DocTree>ReturnTree. getDescription()Returns the description of the return value of a method.List<? extends DocTree>SerialDataTree. getDescription()Returns the description of the serial data.List<? extends DocTree>SerialFieldTree. getDescription()Returns the description of the serial field.List<? extends DocTree>SerialTree. getDescription()Returns the description of the field, or the word "include" or "exclude".List<? extends DocTree>ThrowsTree. getDescription()Returns a description of the reasons why the exception may be thrown.List<? extends DocTree>UsesTree. getDescription()Returns a description of the use of service type within the module.List<? extends DocTree>DocCommentTree. getFirstSentence()Returns the first sentence of a documentation comment.default List<? extends DocTree>DocCommentTree. getFullBody()Returns the entire body of a documentation comment, appearing before any block tags, including the first sentence.List<? extends DocTree>LinkTree. getLabel()Returns the label, if any, of the link.List<? extends DocTree>AuthorTree. getName()Returns the name of the author.default List<? extends DocTree>DocCommentTree. getPostamble()Returns a list of trees containing the content (if any) following the content of the documentation comment.default List<? extends DocTree>DocCommentTree. getPreamble()Returns a list of trees containing the content (if any) preceding the content of the documentation comment.List<? extends DocTree>SeeTree. getReference()Returns the reference.List<? extends DocTree>SummaryTree. getSummary()Returns the summary or the first line of a comment.List<? extends DocTree>AttributeTree. getValue()Returns the value of the attribute, ornullif the kind is EMPTY.Methods in com.sun.source.doctree with parameters of type DocTree Modifier and Type Method Description RDocTreeVisitor. visitOther(DocTree node, P p)Visits an unknown type of DocTree node. -
Uses of DocTree in com.sun.source.util
Methods in com.sun.source.util that return DocTree Modifier and Type Method Description DocTreeDocTreePath. getLeaf()Returns the leaf node for this path.Methods in com.sun.source.util that return types with arguments of type DocTree Modifier and Type Method Description List<DocTree>DocTreeFactory. getFirstSentence(List<? extends DocTree> list)Get the first sentence contained in a list of content.abstract List<DocTree>DocTrees. getFirstSentence(List<? extends DocTree> list)Returns the list ofDocTreerepresenting the first sentence of a comment.Methods in com.sun.source.util with parameters of type DocTree Modifier and Type Method Description protected RSimpleDocTreeVisitor. defaultAction(DocTree node, P p)The default action, used by all visit methods that are not overridden.longDocSourcePositions. getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)Returns the ending position of the tree within the comment within the file.static DocTreePathDocTreePath. getPath(DocTreePath path, DocTree target)Returns a documentation tree path for a tree node within a subtree identified by a DocTreePath object, ornullif the node is not found.static DocTreePathDocTreePath. getPath(TreePath treePath, DocCommentTree doc, DocTree target)Returns a documentation tree path for a tree node within a compilation unit, ornullif the node is not found.longDocSourcePositions. getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)Returns the starting position of the tree within the comment within the file.IndexTreeDocTreeFactory. newIndexTree(DocTree term, List<? extends DocTree> description)Create a newIndexTreeobject, to represent an{@index }tag.abstract voidDocTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)Prints a message of the specified kind at the location of the tree within the provided compilation unitRDocTreePathScanner. scan(DocTree tree, P p)Scans a single node.RDocTreeScanner. scan(DocTree node, P p)Scans a single node.RSimpleDocTreeVisitor. visit(DocTree node, P p)Invokes the appropriate visit method specific to the type of the node.RDocTreeScanner. visitOther(DocTree node, P p)Visits an unknown type of DocTree node.RSimpleDocTreeVisitor. visitOther(DocTree node, P p)Visits an unknown type of DocTree node.Method parameters in com.sun.source.util with type arguments of type DocTree Modifier and Type Method Description List<DocTree>DocTreeFactory. getFirstSentence(List<? extends DocTree> list)Get the first sentence contained in a list of content.abstract List<DocTree>DocTrees. getFirstSentence(List<? extends DocTree> list)Returns the list ofDocTreerepresenting the first sentence of a comment.AttributeTreeDocTreeFactory. newAttributeTree(Name name, AttributeTree.ValueKind vkind, List<? extends DocTree> value)Create a newAttributeTreeobject, to represent an HTML attribute in an HTML tag.AuthorTreeDocTreeFactory. newAuthorTree(List<? extends DocTree> name)Create a newAuthorTreeobject, to represent an{@author }tag.DeprecatedTreeDocTreeFactory. newDeprecatedTree(List<? extends DocTree> text)Create a newDeprecatedTreeobject, to represent an{@deprecated }tag.DocCommentTreeDocTreeFactory. newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags)Create a newDocCommentTreeobject, to represent a complete doc comment.DocCommentTreeDocTreeFactory. newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags, List<? extends DocTree> preamble, List<? extends DocTree> postamble)Create a newDocCommentTreeobject, to represent the enitire doc comment.ThrowsTreeDocTreeFactory. newExceptionTree(ReferenceTree name, List<? extends DocTree> description)Create a newExceptionTreeobject, to represent an@exceptiontag.HiddenTreeDocTreeFactory. newHiddenTree(List<? extends DocTree> text)Create a newHiddenTreeobject, to represent an{@hidden }tag.IndexTreeDocTreeFactory. newIndexTree(DocTree term, List<? extends DocTree> description)Create a newIndexTreeobject, to represent an{@index }tag.LinkTreeDocTreeFactory. newLinkPlainTree(ReferenceTree ref, List<? extends DocTree> label)Create a newLinkPlainTreeobject, to represent a{@linkplain }tag.LinkTreeDocTreeFactory. newLinkTree(ReferenceTree ref, List<? extends DocTree> label)Create a newLinkTreeobject, to represent a{@link }tag.ParamTreeDocTreeFactory. newParamTree(boolean isTypeParameter, IdentifierTree name, List<? extends DocTree> description)Create a newParamTreeobject, to represent a@paramtag.ProvidesTreeDocTreeFactory. newProvidesTree(ReferenceTree name, List<? extends DocTree> description)Create a newProvidesTreeobject, to represent a@providestag.ReturnTreeDocTreeFactory. newReturnTree(List<? extends DocTree> description)Create a newReturnTreeobject, to represent a@returntag.SeeTreeDocTreeFactory. newSeeTree(List<? extends DocTree> reference)Create a newSeeTreeobject, to represent a@seetag.SerialDataTreeDocTreeFactory. newSerialDataTree(List<? extends DocTree> description)Create a newSerialDataTreeobject, to represent a@serialDatatag.SerialFieldTreeDocTreeFactory. newSerialFieldTree(IdentifierTree name, ReferenceTree type, List<? extends DocTree> description)Create a newSerialFieldTreeobject, to represent a@serialFieldtag.SerialTreeDocTreeFactory. newSerialTree(List<? extends DocTree> description)Create a newSerialTreeobject, to represent a@serialtag.SinceTreeDocTreeFactory. newSinceTree(List<? extends DocTree> text)Create a newSinceTreeobject, to represent a@sincetag.StartElementTreeDocTreeFactory. newStartElementTree(Name name, List<? extends DocTree> attrs, boolean selfClosing)Create a newStartElementTreeobject, to represent the start of an HTML element.default SummaryTreeDocTreeFactory. newSummaryTree(List<? extends DocTree> summary)Create a newSummaryTreeobject, to represent a@summarytag.ThrowsTreeDocTreeFactory. newThrowsTree(ReferenceTree name, List<? extends DocTree> description)Create a newThrowsTreeobject, to represent a@throwstag.UnknownBlockTagTreeDocTreeFactory. newUnknownBlockTagTree(Name name, List<? extends DocTree> content)Create a newUnknownBlockTagTreeobject, to represent an unrecognized block tag.UnknownInlineTagTreeDocTreeFactory. newUnknownInlineTagTree(Name name, List<? extends DocTree> content)Create a newUnknownInlineTagTreeobject, to represent an unrecognized inline tag.UsesTreeDocTreeFactory. newUsesTree(ReferenceTree name, List<? extends DocTree> description)Create a newUsesTreeobject, to represent a@usestag.VersionTreeDocTreeFactory. newVersionTree(List<? extends DocTree> text)Create a newVersionTreeobject, to represent a{@version }tag.RDocTreeScanner. scan(Iterable<? extends DocTree> nodes, P p)Scans a sequence of nodes.RSimpleDocTreeVisitor. visit(Iterable<? extends DocTree> nodes, P p)Invokes the appropriate visit method on each of a sequence of nodes.Constructors in com.sun.source.util with parameters of type DocTree Constructor Description DocTreePath(DocTreePath p, DocTree t)Creates a DocTreePath for a child node. -
Uses of DocTree in jdk.javadoc.doclet