com.sun.javafx.api.tree
Class JavaFXTreePathScanner<R,P>

java.lang.Object
  extended by com.sun.source.util.TreeScanner<R,P>
      extended by com.sun.javafx.api.tree.JavaFXTreeScanner<R,P>
          extended by com.sun.javafx.api.tree.JavaFXTreePathScanner<R,P>
All Implemented Interfaces:
JavaFXTreeVisitor<R,P>, com.sun.source.tree.TreeVisitor<R,P>

public class JavaFXTreePathScanner<R,P>
extends JavaFXTreeScanner<R,P>

A TreeVisitor that visits all the child tree nodes, and provides support for maintaining a path for the parent nodes. To visit nodes of a particular type, just override the corresponding visitorXYZ method. Inside your method, call super.visitXYZ to visit descendant nodes.

Since:
1.6

Constructor Summary
JavaFXTreePathScanner()
           
 
Method Summary
 com.sun.source.util.TreePath getCurrentPath()
          Get the current path for the node, as built up by the currently active set of scan calls.
 R scan(com.sun.source.tree.Tree tree, P p)
          Scan a single node.
 R scan(com.sun.source.util.TreePath path, P p)
          Scan a tree from a position identified by a TreePath.
 
Methods inherited from class com.sun.javafx.api.tree.JavaFXTreeScanner
visitBindExpression, visitBlockExpression, visitClassDeclaration, visitForExpression, visitForExpressionInClause, visitFunctionDefinition, visitFunctionValue, visitIndexof, visitInitDefinition, visitInstantiate, visitInterpolate, visitInterpolateValue, visitKeyFrameLiteral, visitObjectLiteralPart, visitOnReplace, visitPostInitDefinition, visitSequenceDelete, visitSequenceEmpty, visitSequenceExplicit, visitSequenceIndexed, visitSequenceInsert, visitSequenceRange, visitSequenceSlice, visitSetAttributeToObject, visitStringExpression, visitTimeLiteral, visitTrigger, visitTypeAny, visitTypeClass, visitTypeFunctional, visitTypeUnknown, visitVariable
 
Methods inherited from class com.sun.source.util.TreeScanner
reduce, scan, 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, visitLabeledStatement, visitLiteral, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitVariable, visitWhileLoop, visitWildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.source.tree.TreeVisitor
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, visitLabeledStatement, visitLiteral, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitVariable, visitWhileLoop, visitWildcard
 

Constructor Detail

JavaFXTreePathScanner

public JavaFXTreePathScanner()
Method Detail

scan

public R scan(com.sun.source.util.TreePath path,
              P p)
Scan a tree from a position identified by a TreePath.


scan

public R scan(com.sun.source.tree.Tree tree,
              P p)
Scan a single node. The current path is updated for the duration of the scan.

Overrides:
scan in class com.sun.source.util.TreeScanner<R,P>

getCurrentPath

public com.sun.source.util.TreePath getCurrentPath()
Get the current path for the node, as built up by the currently active set of scan calls.