com.sun.javafx.api.tree
Interface JavaFXTree

All Superinterfaces:
com.sun.source.tree.Tree
All Known Subinterfaces:
BindExpressionTree, BlockExpressionTree, ClassDeclarationTree, ForExpressionInClauseTree, ForExpressionTree, FunctionDefinitionTree, FunctionValueTree, IndexofTree, InitDefinitionTree, InstantiateTree, InterpolateTree, InterpolateValueTree, JavaFXExpressionTree, JavaFXStatementTree, JavaFXVariableTree, KeyFrameLiteralTree, ObjectLiteralPartTree, OnReplaceTree, SequenceCreatorTree, SequenceDeleteTree, SequenceEmptyTree, SequenceExplicitTree, SequenceIndexedTree, SequenceInsertTree, SequenceRangeTree, SequenceSliceTree, SetAttributeToObjectTree, StringExpressionTree, TimeLiteralTree, TriggerTree, TypeAnyTree, TypeClassTree, TypeFunctionalTree, TypeTree, TypeUnknownTree

public interface JavaFXTree
extends com.sun.source.tree.Tree

Common interface for all nodes in an abstract syntax tree for the JavaFX Script language.

WARNING: This interface and its sub-interfaces are subject to change as the JavaFX Script programming language evolves. These interfaces are implemented by Sun's JavaFX Script compiler (javafxc) and should not be implemented either directly or indirectly by other applications.


Nested Class Summary
static class JavaFXTree.JavaFXKind
          Enumerates all kinds of trees.
 
Nested classes/interfaces inherited from interface com.sun.source.tree.Tree
com.sun.source.tree.Tree.Kind
 
Method Summary
<R,D> R
accept(JavaFXTreeVisitor<R,D> visitor, D data)
          Accept method used to implement the visitor pattern.
 JavaFXTree.JavaFXKind getJavaFXKind()
          Gets the JavaFX kind of this tree.
 com.sun.source.tree.Tree.Kind getKind()
          Gets the com.sun.source.tree.Tree.Kind of this tree.
 
Methods inherited from interface com.sun.source.tree.Tree
accept
 

Method Detail

getKind

com.sun.source.tree.Tree.Kind getKind()
Gets the com.sun.source.tree.Tree.Kind of this tree. Because Tree kinds cannot be extended, Kind.OTHER is always returned for any instance of JavaFXTree. Use getJavaFXKind to get the JavaFX kind.

Specified by:
getKind in interface com.sun.source.tree.Tree
Returns:
Kind.OTHER

getJavaFXKind

JavaFXTree.JavaFXKind getJavaFXKind()
Gets the JavaFX kind of this tree.

Returns:
the kind of this tree.

accept

<R,D> R accept(JavaFXTreeVisitor<R,D> visitor,
               D data)
Accept method used to implement the visitor pattern. The visitor pattern is used to implement operations on trees.

Type Parameters:
R - result type of this operation.
D - type of additonal data.