Package org.drools.compiler.lang
Enum DroolsSentenceType
- java.lang.Object
-
- java.lang.Enum<DroolsSentenceType>
-
- org.drools.compiler.lang.DroolsSentenceType
-
- All Implemented Interfaces:
Serializable
,Comparable<DroolsSentenceType>
public enum DroolsSentenceType extends Enum<DroolsSentenceType>
Enum to identify a sentence type. This is used by DRLParser and stored into DroolsSentence.- See Also:
DroolsSentence
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCUMULATE_IMPORT_STATEMENT
ENTRYPOINT_DECLARATION
ENUM_DECLARATION
EVAL
FUNCTION
FUNCTION_IMPORT_STATEMENT
GLOBAL
IMPORT_STATEMENT
PACKAGE
QUERY
RULE
TEMPLATE
TYPE_DECLARATION
UNIT
WINDOW_DECLARATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DroolsSentenceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DroolsSentenceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE
public static final DroolsSentenceType PACKAGE
-
UNIT
public static final DroolsSentenceType UNIT
-
FUNCTION_IMPORT_STATEMENT
public static final DroolsSentenceType FUNCTION_IMPORT_STATEMENT
-
ACCUMULATE_IMPORT_STATEMENT
public static final DroolsSentenceType ACCUMULATE_IMPORT_STATEMENT
-
IMPORT_STATEMENT
public static final DroolsSentenceType IMPORT_STATEMENT
-
GLOBAL
public static final DroolsSentenceType GLOBAL
-
FUNCTION
public static final DroolsSentenceType FUNCTION
-
TEMPLATE
public static final DroolsSentenceType TEMPLATE
-
TYPE_DECLARATION
public static final DroolsSentenceType TYPE_DECLARATION
-
RULE
public static final DroolsSentenceType RULE
-
QUERY
public static final DroolsSentenceType QUERY
-
EVAL
public static final DroolsSentenceType EVAL
-
ENTRYPOINT_DECLARATION
public static final DroolsSentenceType ENTRYPOINT_DECLARATION
-
WINDOW_DECLARATION
public static final DroolsSentenceType WINDOW_DECLARATION
-
ENUM_DECLARATION
public static final DroolsSentenceType ENUM_DECLARATION
-
-
Method Detail
-
values
public static DroolsSentenceType[] 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 (DroolsSentenceType c : DroolsSentenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DroolsSentenceType 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
-
-