Package gw.lang.parser
Enum IGosuParser.ParseType
- java.lang.Object
-
- java.lang.Enum<IGosuParser.ParseType>
-
- gw.lang.parser.IGosuParser.ParseType
-
- All Implemented Interfaces:
Serializable
,Comparable<IGosuParser.ParseType>
- Enclosing interface:
- IGosuParser
public static enum IGosuParser.ParseType extends Enum<IGosuParser.ParseType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_FRAGMENT
EXPRESSION
EXPRESSION_OR_PROGRAM
PROGRAM
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IGosuParser.ParseType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IGosuParser.ParseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPRESSION
public static final IGosuParser.ParseType EXPRESSION
-
PROGRAM
public static final IGosuParser.ParseType PROGRAM
-
CLASS_FRAGMENT
public static final IGosuParser.ParseType CLASS_FRAGMENT
-
EXPRESSION_OR_PROGRAM
public static final IGosuParser.ParseType EXPRESSION_OR_PROGRAM
-
-
Method Detail
-
values
public static IGosuParser.ParseType[] 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 (IGosuParser.ParseType c : IGosuParser.ParseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IGosuParser.ParseType 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
-
-