Package org.drools.compiler.lang
Enum DroolsParaphraseTypes
- java.lang.Object
-
- java.lang.Enum<DroolsParaphraseTypes>
-
- org.drools.compiler.lang.DroolsParaphraseTypes
-
- All Implemented Interfaces:
Serializable,Comparable<DroolsParaphraseTypes>
public enum DroolsParaphraseTypes extends Enum<DroolsParaphraseTypes>
Simple enum to identify a paraphrase type. This enum is used to better format error messages during parsing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCUMULATE_IMPORTENTRYPOINT_DECLAREENUM_DECLAREEVALFUNCTIONFUNCTION_IMPORTGLOBALIMPORTPACKAGEPATTERNQUERYRULERULE_ATTRIBUTETEMPLATETYPE_DECLAREUNITWINDOW_DECLARE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DroolsParaphraseTypesvalueOf(String name)Returns the enum constant of this type with the specified name.static DroolsParaphraseTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE
public static final DroolsParaphraseTypes PACKAGE
-
UNIT
public static final DroolsParaphraseTypes UNIT
-
IMPORT
public static final DroolsParaphraseTypes IMPORT
-
FUNCTION_IMPORT
public static final DroolsParaphraseTypes FUNCTION_IMPORT
-
ACCUMULATE_IMPORT
public static final DroolsParaphraseTypes ACCUMULATE_IMPORT
-
GLOBAL
public static final DroolsParaphraseTypes GLOBAL
-
FUNCTION
public static final DroolsParaphraseTypes FUNCTION
-
QUERY
public static final DroolsParaphraseTypes QUERY
-
TEMPLATE
public static final DroolsParaphraseTypes TEMPLATE
-
RULE
public static final DroolsParaphraseTypes RULE
-
RULE_ATTRIBUTE
public static final DroolsParaphraseTypes RULE_ATTRIBUTE
-
PATTERN
public static final DroolsParaphraseTypes PATTERN
-
TYPE_DECLARE
public static final DroolsParaphraseTypes TYPE_DECLARE
-
EVAL
public static final DroolsParaphraseTypes EVAL
-
ENTRYPOINT_DECLARE
public static final DroolsParaphraseTypes ENTRYPOINT_DECLARE
-
WINDOW_DECLARE
public static final DroolsParaphraseTypes WINDOW_DECLARE
-
ENUM_DECLARE
public static final DroolsParaphraseTypes ENUM_DECLARE
-
-
Method Detail
-
values
public static DroolsParaphraseTypes[] 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 (DroolsParaphraseTypes c : DroolsParaphraseTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DroolsParaphraseTypes 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
-
-