com.sun.javafx.api.tree
Enum SyntheticTree.SynthType

java.lang.Object
  extended by java.lang.Enum<SyntheticTree.SynthType>
      extended by com.sun.javafx.api.tree.SyntheticTree.SynthType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SyntheticTree.SynthType>
Enclosing interface:
SyntheticTree

public static enum SyntheticTree.SynthType
extends java.lang.Enum<SyntheticTree.SynthType>

Enumerates all the sources of AST nodes. Currently there are only nodes that reflect real source code, and nodes that were created by the compiler to support execution or code generation etc.


Enum Constant Summary
COMPILED
          Used to flag a node as being the result of compiled source code.
SYNTHETIC
          Used to flag a node as generated by the compiler to support code generation, or execution.
 
Method Summary
static SyntheticTree.SynthType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SyntheticTree.SynthType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMPILED

public static final SyntheticTree.SynthType COMPILED
Used to flag a node as being the result of compiled source code.


SYNTHETIC

public static final SyntheticTree.SynthType SYNTHETIC
Used to flag a node as generated by the compiler to support code generation, or execution. This may be expanded later to distinguish other nodes such as entries created to assist IDE plugins and so on.

Method Detail

values

public static SyntheticTree.SynthType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SyntheticTree.SynthType c : SyntheticTree.SynthType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SyntheticTree.SynthType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null