Package org.drools.model
Enum PrototypeExpression.ThisPrototype
- java.lang.Object
-
- java.lang.Enum<PrototypeExpression.ThisPrototype>
-
- org.drools.model.PrototypeExpression.ThisPrototype
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PrototypeExpression.ThisPrototype>,PrototypeExpression
- Enclosing interface:
- PrototypeExpression
public static enum PrototypeExpression.ThisPrototype extends java.lang.Enum<PrototypeExpression.ThisPrototype> implements PrototypeExpression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.PrototypeExpression
PrototypeExpression.BinaryOperation, PrototypeExpression.CompletePrototypeFieldValue, PrototypeExpression.EvaluableExpression, PrototypeExpression.FixedValue, PrototypeExpression.PrototypeArrayItemValue, PrototypeExpression.PrototypeCompositeExpression, PrototypeExpression.PrototypeFieldValue, PrototypeExpression.ThisPrototype
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Function1<PrototypeFact,java.lang.Object>asFunction(Prototype prototype)java.util.Collection<java.lang.String>getImpactedFields()java.lang.StringtoString()static PrototypeExpression.ThisPrototypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PrototypeExpression.ThisPrototype[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface org.drools.model.PrototypeExpression
add, andThen, composeWith, div, getPrototypeVariables, hasPrototypeVariable, mul, sub
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final PrototypeExpression.ThisPrototype INSTANCE
-
-
Method Detail
-
values
public static PrototypeExpression.ThisPrototype[] 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 (PrototypeExpression.ThisPrototype c : PrototypeExpression.ThisPrototype.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrototypeExpression.ThisPrototype 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
-
asFunction
public Function1<PrototypeFact,java.lang.Object> asFunction(Prototype prototype)
- Specified by:
asFunctionin interfacePrototypeExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<PrototypeExpression.ThisPrototype>
-
getImpactedFields
public java.util.Collection<java.lang.String> getImpactedFields()
- Specified by:
getImpactedFieldsin interfacePrototypeExpression
-
-