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

java.lang.Object
  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>

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
 JavaFXTreePath getCurrentPath()
          Get the current path for the node, as built up by the currently active set of scan calls.
 R scan(JavaFXTreePath path, P p)
          Scan a tree from a position identified by a TreePath.
 R scan(Tree tree, P p)
          Scan a single node.
 
Methods inherited from class com.sun.javafx.api.tree.JavaFXTreeScanner
reduce, scan, visitAssignment, visitBinary, visitBlockExpression, visitBreak, visitCatch, visitClassDeclaration, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitEmptyStatement, visitErroneous, visitForExpression, visitForExpressionInClause, visitFunctionDefinition, visitFunctionValue, visitIdentifier, visitImport, visitIndexof, visitInitDefinition, visitInstanceOf, visitInstantiate, visitInterpolateValue, visitKeyFrameLiteral, visitLiteral, visitMemberSelect, visitMethodInvocation, visitMissingExpression, visitModifiers, visitObjectLiteralPart, visitOnReplace, visitParenthesized, visitPostInitDefinition, visitReturn, visitSequenceDelete, visitSequenceEmpty, visitSequenceExplicit, visitSequenceIndexed, visitSequenceInsert, visitSequenceRange, visitSequenceSlice, visitStringExpression, visitThrow, visitTimeLiteral, visitTrigger, visitTry, visitTypeAny, visitTypeArray, visitTypeCast, visitTypeClass, visitTypeFunctional, visitTypeUnknown, visitUnary, visitVariable, visitVariableInvalidate, visitWhileLoop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFXTreePathScanner

public JavaFXTreePathScanner()
Method Detail

scan

public R scan(JavaFXTreePath path,
              P p)
Scan a tree from a position identified by a TreePath.


scan

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

Overrides:
scan in class JavaFXTreeScanner<R,P>

getCurrentPath

public JavaFXTreePath getCurrentPath()
Get the current path for the node, as built up by the currently active set of scan calls.