TreeVisitor<R,P>public class TreePathScanner<R,P> extends TreeScanner<R,P>
scan methods.| Constructor | Description |
|---|---|
TreePathScanner() |
| Modifier and Type | Method | Description |
|---|---|---|
TreePath |
getCurrentPath() |
Returns the current path for the node, as built up by the currently
active set of scan calls.
|
R |
scan(Tree tree,
P p) |
Scans a single node.
|
R |
scan(TreePath path,
P p) |
Scans a tree from a position identified by a TreePath.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcardpublic R scan(TreePath path, P p)
path - the path identifying the node to be scannedp - a parameter value passed to visit methodspublic R scan(Tree tree, P p)
scan in class TreeScanner<R,P>visit methods, as part of an ongoing scan
initiated by scan(TreePath, P).
The one exception is that it may also be called to initiate
a full scan of a CompilationUnitTree.tree - the node to be scannedp - a parameter value passed to the visit methodpublic TreePath getCurrentPath()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2