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 DocTreePathScanner<R,P> extends DocTreeScanner<R,P>
Constructor | Description |
---|---|
DocTreePathScanner() |
Constructs a DocTreePathScanner . |
Modifier and Type | Method | Description |
---|---|---|
DocTreePath |
getCurrentPath() |
Returns the current path for the node, as built up by the currently active set of scan calls. |
R |
scan |
Scans a single node. |
R |
scan |
Scans a tree from a position identified by a tree path. |
reduce, scan, visitAttribute, visitAuthor, visitComment, visitDeprecated, visitDocComment, visitDocRoot, visitDocType, visitEndElement, visitEntity, visitErroneous, visitEscape, visitHidden, visitIdentifier, visitIndex, visitInheritDoc, visitLink, visitLiteral, visitOther, visitParam, visitProvides, visitReference, visitReturn, visitSee, visitSerial, visitSerialData, visitSerialField, visitSince, visitSnippet, visitSpec, visitStartElement, visitSummary, visitSystemProperty, visitText, visitThrows, visitUnknownBlockTag, visitUnknownInlineTag, visitUses, visitValue, visitVersion
public DocTreePathScanner()
DocTreePathScanner
.public R scan(DocTreePath path, P p)
path
- the pathp
- a value to be passed to visitor methodspublic R scan(DocTree tree, P p)
scan
in class DocTreeScanner<R,P>
tree
- the tree to be scannedp
- a value to be passed to visitor methodspublic DocTreePath getCurrentPath()
© 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/DocTreePathScanner.html