Package org.codehaus.janino
Enum Parser.ClassDeclarationContext
- java.lang.Object
-
- java.lang.Enum<Parser.ClassDeclarationContext>
-
- org.codehaus.janino.Parser.ClassDeclarationContext
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Parser.ClassDeclarationContext>
- Enclosing class:
- Parser
public static enum Parser.ClassDeclarationContext extends java.lang.Enum<Parser.ClassDeclarationContext>
The kinds of context where a class declaration can occur.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
The class declaration appears inside a 'block'.COMPILATION_UNIT
The class declaration appears on the top level.TYPE_DECLARATION
The class declaration appears (directly) inside a type declaration.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parser.ClassDeclarationContext
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Parser.ClassDeclarationContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCK
public static final Parser.ClassDeclarationContext BLOCK
The class declaration appears inside a 'block'.
-
TYPE_DECLARATION
public static final Parser.ClassDeclarationContext TYPE_DECLARATION
The class declaration appears (directly) inside a type declaration.
-
COMPILATION_UNIT
public static final Parser.ClassDeclarationContext COMPILATION_UNIT
The class declaration appears on the top level.
-
-
Method Detail
-
values
public static Parser.ClassDeclarationContext[] 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 (Parser.ClassDeclarationContext c : Parser.ClassDeclarationContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parser.ClassDeclarationContext 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 namejava.lang.NullPointerException
- if the argument is null
-
-