R
- the return type of this visitor's methods. Use Void
for visitors that do not need to return results.P
- the type of the additional parameter to this visitor's methods. Use Void
for visitors that do not need an additional parameter.DocTreePathScanner
, DocTreeScanner
, SimpleDocTreeVisitor
public interface DocTreeVisitor<R,P>
accept
method, the visitXyz
method most applicable to that tree is invoked. Classes implementing this interface may or may not throw a NullPointerException
if the additional parameter p
is null
; see documentation of the implementing class for details.
WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, doc comment structures added to future versions of the Java programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform.
Modifier and Type | Method | Description |
---|---|---|
R |
visitAttribute |
Visits an AttributeTree node. |
R |
visitAuthor |
Visits an AuthorTree node. |
R |
visitComment |
Visits a CommentTree node. |
R |
visitDeprecated |
Visits a DeprecatedTree node. |
R |
visitDocComment |
Visits a DocCommentTree node. |
R |
visitDocRoot |
Visits a DocRootTree node. |
default R |
visitDocType |
Visits a DocTypeTree node. |
R |
visitEndElement |
Visits an EndElementTree node. |
R |
visitEntity |
Visits an EntityTree node. |
R |
visitErroneous |
Visits an ErroneousTree node. |
default R |
visitEscape |
Visits an EscapeTree node. |
default R |
visitHidden |
Visits a HiddenTree node. |
R |
visitIdentifier |
Visits an IdentifierTree node. |
default R |
visitIndex |
Visits an IndexTree node. |
R |
visitInheritDoc |
Visits an InheritDocTree node. |
R |
visitLink |
Visits a LinkTree node. |
R |
visitLiteral |
Visits an LiteralTree node. |
R |
visitOther |
Visits an unknown type of DocTree node. |
R |
visitParam |
Visits a ParamTree node. |
default R |
visitProvides |
Visits a ProvidesTree node. |
R |
visitReference |
Visits a ReferenceTree node. |
R |
visitReturn |
Visits a ReturnTree node. |
R |
visitSee |
Visits a SeeTree node. |
R |
visitSerial |
Visits a SerialTree node. |
R |
visitSerialData |
Visits a SerialDataTree node. |
R |
visitSerialField |
Visits a SerialFieldTree node. |
R |
visitSince |
Visits a SinceTree node. |
default R |
visitSnippet |
Visits a SnippetTree node. |
default R |
visitSpec |
Visits a SpecTree node. |
R |
visitStartElement |
Visits a StartElementTree node. |
default R |
visitSummary |
Visits a SummaryTree node. |
default R |
visitSystemProperty |
Visits a SystemPropertyTree node. |
R |
visitText |
Visits a TextTree node. |
R |
visitThrows |
Visits a ThrowsTree node. |
R |
visitUnknownBlockTag |
Visits an UnknownBlockTagTree node. |
R |
visitUnknownInlineTag |
Visits an UnknownInlineTagTree node. |
default R |
visitUses |
Visits a UsesTree node. |
R |
visitValue |
Visits a ValueTree node. |
R |
visitVersion |
Visits a VersionTree node. |
R visitAttribute(AttributeTree node, P p)
AttributeTree
node.node
- the node being visitedp
- a parameter valueR visitAuthor(AuthorTree node, P p)
AuthorTree
node.node
- the node being visitedp
- a parameter valueR visitComment(CommentTree node, P p)
CommentTree
node.node
- the node being visitedp
- a parameter valueR visitDeprecated(DeprecatedTree node, P p)
DeprecatedTree
node.node
- the node being visitedp
- a parameter valueR visitDocComment(DocCommentTree node, P p)
DocCommentTree
node.node
- the node being visitedp
- a parameter valueR visitDocRoot(DocRootTree node, P p)
DocRootTree
node.node
- the node being visitedp
- a parameter valuedefault R visitDocType(DocTypeTree node, P p)
DocTypeTree
node.DocTypeTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitEndElement(EndElementTree node, P p)
EndElementTree
node.node
- the node being visitedp
- a parameter valueR visitEntity(EntityTree node, P p)
EntityTree
node.node
- the node being visitedp
- a parameter valueR visitErroneous(ErroneousTree node, P p)
ErroneousTree
node.node
- the node being visitedp
- a parameter valuedefault R visitEscape(EscapeTree node, P p)
EscapeTree
node.EscapeTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valuedefault R visitHidden(HiddenTree node, P p)
HiddenTree
node.HiddenTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitIdentifier(IdentifierTree node, P p)
IdentifierTree
node.node
- the node being visitedp
- a parameter valuedefault R visitIndex(IndexTree node, P p)
IndexTree
node.IndexTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitInheritDoc(InheritDocTree node, P p)
InheritDocTree
node.node
- the node being visitedp
- a parameter valueR visitLink(LinkTree node, P p)
LinkTree
node.node
- the node being visitedp
- a parameter valueR visitLiteral(LiteralTree node, P p)
LiteralTree
node.node
- the node being visitedp
- a parameter valueR visitParam(ParamTree node, P p)
ParamTree
node.node
- the node being visitedp
- a parameter valuedefault R visitProvides(ProvidesTree node, P p)
ProvidesTree
node.ProvidesTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitReference(ReferenceTree node, P p)
ReferenceTree
node.node
- the node being visitedp
- a parameter valueR visitReturn(ReturnTree node, P p)
ReturnTree
node.node
- the node being visitedp
- a parameter valueR visitSee(SeeTree node, P p)
SeeTree
node.node
- the node being visitedp
- a parameter valueR visitSerial(SerialTree node, P p)
SerialTree
node.node
- the node being visitedp
- a parameter valueR visitSerialData(SerialDataTree node, P p)
SerialDataTree
node.node
- the node being visitedp
- a parameter valueR visitSerialField(SerialFieldTree node, P p)
SerialFieldTree
node.node
- the node being visitedp
- a parameter valueR visitSince(SinceTree node, P p)
SinceTree
node.node
- the node being visitedp
- a parameter valuedefault R visitSnippet(SnippetTree node, P p)
SnippetTree
node.SnippetTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valuedefault R visitSpec(SpecTree node, P p)
SpecTree
node.SpecTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitStartElement(StartElementTree node, P p)
StartElementTree
node.node
- the node being visitedp
- a parameter valuedefault R visitSummary(SummaryTree node, P p)
SummaryTree
node.SummaryTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valuedefault R visitSystemProperty(SystemPropertyTree node, P p)
SystemPropertyTree
node.SystemPropertyTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitText(TextTree node, P p)
TextTree
node.node
- the node being visitedp
- a parameter valueR visitThrows(ThrowsTree node, P p)
ThrowsTree
node.node
- the node being visitedp
- a parameter valueR visitUnknownBlockTag(UnknownBlockTagTree node, P p)
UnknownBlockTagTree
node.node
- the node being visitedp
- a parameter valueR visitUnknownInlineTag(UnknownInlineTagTree node, P p)
UnknownInlineTagTree
node.node
- the node being visitedp
- a parameter valuedefault R visitUses(UsesTree node, P p)
UsesTree
node.UsesTree
node by calling visitOther(node, p)
.node
- the node being visitedp
- a parameter valueR visitValue(ValueTree node, P p)
ValueTree
node.node
- the node being visitedp
- a parameter valueR visitVersion(VersionTree node, P p)
VersionTree
node.node
- the node being visitedp
- a parameter valueR visitOther(DocTree node, P p)
DocTree
node. This can occur if the set of tags evolves and new kinds of nodes are added to the DocTree
hierarchy.node
- the node being visitedp
- a parameter value
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.compiler/com/sun/source/doctree/DocTreeVisitor.html