Package org.drools.drl.ast.descr
Class LiteralRestrictionDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.RestrictionDescr
org.drools.drl.ast.descr.EvaluatorBasedRestrictionDescr
org.drools.drl.ast.descr.LiteralRestrictionDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
This represents a literal node in the rule language. This is
a constraint on a single field of a pattern.
The "text" contains the content.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionLiteralRestrictionDescr(String evaluator, boolean isNegated, String text) LiteralRestrictionDescr(String evaluator, boolean isNegated, String parameterText, String text, int type) LiteralRestrictionDescr(String evaluator, boolean isNegated, List<String> parameters, String text, int type) LiteralRestrictionDescr(String evaluator, String text) -
Method Summary
Methods inherited from class org.drools.drl.ast.descr.EvaluatorBasedRestrictionDescr
getEvaluator, getParameters, getParameterText, isNegated, setEvaluator, setNegated, setParametersMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, negate, positionAsString, readExternal, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal
-
Field Details
-
TYPE_NULL
public static final int TYPE_NULL- See Also:
-
TYPE_NUMBER
public static final int TYPE_NUMBER- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
-
Constructor Details
-
LiteralRestrictionDescr
public LiteralRestrictionDescr() -
LiteralRestrictionDescr
-
LiteralRestrictionDescr
-
LiteralRestrictionDescr
-
LiteralRestrictionDescr
-
-
Method Details
-
toString
- Overrides:
toStringin classEvaluatorBasedRestrictionDescr
-
getType
public int getType() -
setType
public void setType(int type) -
getValue
-