Package gw.lang.parser
Enum SymbolType
- java.lang.Object
-
- java.lang.Enum<SymbolType>
-
- gw.lang.parser.SymbolType
-
- All Implemented Interfaces:
Serializable
,Comparable<SymbolType>
public enum SymbolType extends Enum<SymbolType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATCH_VARIABLE
FOREACH_VARIABLE
NAMED_PARAMETER
OBJECT_INITIALIZER
PARAMETER_DECLARATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLocal()
static SymbolType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SymbolType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CATCH_VARIABLE
public static final SymbolType CATCH_VARIABLE
-
OBJECT_INITIALIZER
public static final SymbolType OBJECT_INITIALIZER
-
NAMED_PARAMETER
public static final SymbolType NAMED_PARAMETER
-
PARAMETER_DECLARATION
public static final SymbolType PARAMETER_DECLARATION
-
FOREACH_VARIABLE
public static final SymbolType FOREACH_VARIABLE
-
-
Method Detail
-
values
public static SymbolType[] 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 (SymbolType c : SymbolType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolType 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 nameNullPointerException
- if the argument is null
-
isLocal
public boolean isLocal()
-
-