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