Package org.drools.compiler.lang.dsl
Enum DSLMappingEntry.Section
- java.lang.Object
-
- java.lang.Enum<DSLMappingEntry.Section>
-
- org.drools.compiler.lang.dsl.DSLMappingEntry.Section
-
- All Implemented Interfaces:
Serializable
,Comparable<DSLMappingEntry.Section>
- Enclosing interface:
- DSLMappingEntry
public static enum DSLMappingEntry.Section extends Enum<DSLMappingEntry.Section>
An enum for the sections
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
CONDITION
CONSEQUENCE
KEYWORD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSymbol()
static DSLMappingEntry.Section
valueOf(String name)
Returns the enum constant of this type with the specified name.static DSLMappingEntry.Section[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEYWORD
public static final DSLMappingEntry.Section KEYWORD
-
CONDITION
public static final DSLMappingEntry.Section CONDITION
-
CONSEQUENCE
public static final DSLMappingEntry.Section CONSEQUENCE
-
ANY
public static final DSLMappingEntry.Section ANY
-
-
Method Detail
-
values
public static DSLMappingEntry.Section[] 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 (DSLMappingEntry.Section c : DSLMappingEntry.Section.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DSLMappingEntry.Section 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
-
getSymbol
public String getSymbol()
-
-