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.DocTreeVisitor<R,P>
public class SimpleDocTreeVisitor<R,P> extends Object implements DocTreeVisitor<R,P>
Modifier and Type | Field | Description |
---|---|---|
protected final R |
DEFAULT_VALUE |
The default value, returned by the default action . |
Modifier | Constructor | Description |
---|---|---|
protected |
Creates a visitor, with a DEFAULT_VALUE of null . |
|
protected |
Creates a visitor, with a specified DEFAULT_VALUE. |
Modifier and Type | Method | Description |
---|---|---|
protected R |
defaultAction |
The default action, used by all visit methods that are not overridden. |
final R |
visit |
Invokes the appropriate visit method specific to the type of the node. |
final R |
visit |
Invokes the appropriate visit method on each of a sequence of nodes. |
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. |
R |
visitDocType |
Visits a DocTypeTree node. |
R |
visitEndElement |
Visits an EndElementTree node. |
R |
visitEntity |
Visits an EntityTree node. |
R |
visitErroneous |
Visits an ErroneousTree node. |
R |
visitEscape |
Visits an EscapeTree node. |
R |
visitHidden |
Visits a HiddenTree node. |
R |
visitIdentifier |
Visits an IdentifierTree node. |
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. |
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. |
R |
visitSnippet |
Visits a SnippetTree node. |
R |
visitSpec |
Visits a SpecTree node. |
R |
visitStartElement |
Visits a StartElementTree node. |
R |
visitSummary |
Visits a SummaryTree node. |
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. |
R |
visitUses |
Visits a UsesTree node. |
R |
visitValue |
Visits a ValueTree node. |
R |
visitVersion |
Visits a VersionTree node. |
protected final R DEFAULT_VALUE
default action
.protected SimpleDocTreeVisitor()
null
.protected SimpleDocTreeVisitor(R defaultValue)
defaultValue
- the default value to be returned by the default actionprotected R defaultAction(DocTree node, P p)
node
- the node being visitedp
- the parameter value passed to the visit methodpublic final R visit(DocTree node, P p)
node
- the node on which to dispatchp
- a parameter to be passed to the appropriate visit methodpublic final R visit(Iterable<? extends DocTree> nodes, P p)
nodes
- the nodes on which to dispatchp
- a parameter value to be passed to each appropriate visit methodpublic R visitAttribute(AttributeTree node, P p)
AttributeTree
node.visitAttribute
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitAuthor(AuthorTree node, P p)
AuthorTree
node.visitAuthor
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitComment(CommentTree node, P p)
CommentTree
node.visitComment
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitDeprecated(DeprecatedTree node, P p)
DeprecatedTree
node.visitDeprecated
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitDocComment(DocCommentTree node, P p)
DocCommentTree
node.visitDocComment
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitDocRoot(DocRootTree node, P p)
DocRootTree
node.visitDocRoot
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitDocType(DocTypeTree node, P p)
DocTypeTree
node.visitDocType
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitEndElement(EndElementTree node, P p)
EndElementTree
node.visitEndElement
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitEntity(EntityTree node, P p)
EntityTree
node.visitEntity
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitErroneous(ErroneousTree node, P p)
ErroneousTree
node.visitErroneous
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitEscape(EscapeTree node, P p)
EscapeTree
node.visitEscape
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitHidden(HiddenTree node, P p)
HiddenTree
node.visitHidden
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitIdentifier(IdentifierTree node, P p)
IdentifierTree
node.visitIdentifier
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitIndex(IndexTree node, P p)
IndexTree
node.visitIndex
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitInheritDoc(InheritDocTree node, P p)
InheritDocTree
node.visitInheritDoc
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitLink(LinkTree node, P p)
LinkTree
node.visitLink
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitLiteral(LiteralTree node, P p)
LiteralTree
node.visitLiteral
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitParam(ParamTree node, P p)
ParamTree
node.visitParam
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitProvides(ProvidesTree node, P p)
ProvidesTree
node.visitProvides
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitReference(ReferenceTree node, P p)
ReferenceTree
node.visitReference
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitReturn(ReturnTree node, P p)
ReturnTree
node.visitReturn
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSee(SeeTree node, P p)
SeeTree
node.visitSee
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSerial(SerialTree node, P p)
SerialTree
node.visitSerial
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSerialData(SerialDataTree node, P p)
SerialDataTree
node.visitSerialData
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSerialField(SerialFieldTree node, P p)
SerialFieldTree
node.visitSerialField
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSince(SinceTree node, P p)
SinceTree
node.visitSince
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSnippet(SnippetTree node, P p)
SnippetTree
node.visitSnippet
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSpec(SpecTree node, P p)
SpecTree
node.visitSpec
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitStartElement(StartElementTree node, P p)
StartElementTree
node.visitStartElement
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSummary(SummaryTree node, P p)
SummaryTree
node.visitSummary
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitSystemProperty(SystemPropertyTree node, P p)
SystemPropertyTree
node.visitSystemProperty
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitText(TextTree node, P p)
TextTree
node.visitText
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitThrows(ThrowsTree node, P p)
ThrowsTree
node.visitThrows
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitUnknownBlockTag(UnknownBlockTagTree node, P p)
UnknownBlockTagTree
node.visitUnknownBlockTag
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitUnknownInlineTag(UnknownInlineTagTree node, P p)
UnknownInlineTagTree
node.visitUnknownInlineTag
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitUses(UsesTree node, P p)
UsesTree
node.visitUses
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitValue(ValueTree node, P p)
ValueTree
node.visitValue
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R visitVersion(VersionTree node, P p)
VersionTree
node.visitVersion
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
public R 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.visitOther
in interface DocTreeVisitor<R,P>
defaultAction
.node
- the node being visitedp
- a parameter valuedefaultAction
© 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/util/SimpleDocTreeVisitor.html