com.threerings.presents.tools
Enum ActionScriptSource.Mode

java.lang.Object
  extended by java.lang.Enum<ActionScriptSource.Mode>
      extended by com.threerings.presents.tools.ActionScriptSource.Mode
All Implemented Interfaces:
Serializable, Comparable<ActionScriptSource.Mode>
Enclosing class:
ActionScriptSource

protected static enum ActionScriptSource.Mode
extends Enum<ActionScriptSource.Mode>

Denotes various phases of class file parsing.


Enum Constant Summary
CLASSBODY
           
CLASSCOMMENT
           
CLASSDECL
           
IMPORTS
           
METHODBODY
           
POSTCLASS
           
POSTPKG
           
PREAMBLE
           
 
Method Summary
static ActionScriptSource.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActionScriptSource.Mode[] 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

PREAMBLE

public static final ActionScriptSource.Mode PREAMBLE

IMPORTS

public static final ActionScriptSource.Mode IMPORTS

CLASSCOMMENT

public static final ActionScriptSource.Mode CLASSCOMMENT

CLASSDECL

public static final ActionScriptSource.Mode CLASSDECL

CLASSBODY

public static final ActionScriptSource.Mode CLASSBODY

METHODBODY

public static final ActionScriptSource.Mode METHODBODY

POSTCLASS

public static final ActionScriptSource.Mode POSTCLASS

POSTPKG

public static final ActionScriptSource.Mode POSTPKG
Method Detail

values

public static ActionScriptSource.Mode[] 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 (ActionScriptSource.Mode c : ActionScriptSource.Mode.values())
    System.out.println(c);

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

valueOf

public static ActionScriptSource.Mode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null