Interface DocTreeVisitor<R,P>
- Type Parameters:
-
R
- the return type of this visitor's methods. UseVoid
for visitors that do not need to return results. -
P
- the type of the additional parameter to this visitor's methods. UseVoid
for visitors that do not need an additional parameter.
- All Known Implementing Classes:
-
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.
- Since:
- 1.8
Method Summary
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 |
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. |
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. |
Method Details
visitAttribute
R visitAttribute(AttributeTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitAuthor
R visitAuthor(AuthorTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitComment
R visitComment(CommentTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitDeprecated
R visitDeprecated(DeprecatedTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitDocComment
R visitDocComment(DocCommentTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitDocRoot
R visitDocRoot(DocRootTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitDocType
default R visitDocType(DocTypeTree node, P p)
- Implementation Requirements:
- Visits the provided
DocTypeTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 10
visitEndElement
R visitEndElement(EndElementTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitEntity
R visitEntity(EntityTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitErroneous
R visitErroneous(ErroneousTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitHidden
default R visitHidden(HiddenTree node, P p)
- Implementation Requirements:
- Visits the provided
HiddenTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 9
visitIdentifier
R visitIdentifier(IdentifierTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitIndex
default R visitIndex(IndexTree node, P p)
- Implementation Requirements:
- Visits the provided
IndexTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 9
visitInheritDoc
R visitInheritDoc(InheritDocTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitLink
R visitLink(LinkTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitLiteral
R visitLiteral(LiteralTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitParam
R visitParam(ParamTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitProvides
default R visitProvides(ProvidesTree node, P p)
- Implementation Requirements:
- Visits the provided
ProvidesTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 9
visitReference
R visitReference(ReferenceTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitReturn
R visitReturn(ReturnTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSee
R visitSee(SeeTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSerial
R visitSerial(SerialTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSerialData
R visitSerialData(SerialDataTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSerialField
R visitSerialField(SerialFieldTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSince
R visitSince(SinceTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitStartElement
R visitStartElement(StartElementTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitSummary
default R visitSummary(SummaryTree node, P p)
- Implementation Requirements:
- Visits the provided
SummaryTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 10
visitSystemProperty
default R visitSystemProperty(SystemPropertyTree node, P p)
- Implementation Requirements:
- Visits the provided
SystemPropertyTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 12
visitText
R visitText(TextTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitThrows
R visitThrows(ThrowsTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitUnknownBlockTag
R visitUnknownBlockTag(UnknownBlockTagTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitUnknownInlineTag
R visitUnknownInlineTag(UnknownInlineTagTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitUses
default R visitUses(UsesTree node, P p)
- Implementation Requirements:
- Visits a
UsesTree
node by callingvisitOther(node, p)
. - Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
- Since:
- 9
visitValue
R visitValue(ValueTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitVersion
R visitVersion(VersionTree node, P p)
- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
visitOther
R visitOther(DocTree node, P p)
DocTree
hierarchy.- Parameters:
-
node
- the node being visited -
p
- a parameter value - Returns:
- a result value
© 1993, 2021, 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/17/docs/api/jdk.compiler/com/sun/source/doctree/DocTreeVisitor.html