@Exported public class TreePathScanner<R,P> extends TreeScanner<R,P>
Constructor and Description |
---|
TreePathScanner() |
Modifier and Type | Method and Description |
---|---|
TreePath |
getCurrentPath()
Get the current path for the node, as built up by the currently
active set of scan calls.
|
R |
scan(Tree tree,
P p)
Scan a single node.
|
R |
scan(TreePath path,
P p)
Scan a tree from a position identified by a TreePath.
|
reduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitVariable, visitWhileLoop, visitWildcard
public R scan(Tree tree, P p)
scan
in class TreeScanner<R,P>
public TreePath getCurrentPath()
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.