org.drools.lang.descr
Class LiteralRestrictionDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.RestrictionDescr
org.drools.lang.descr.EvaluatorBasedRestrictionDescr
org.drools.lang.descr.LiteralRestrictionDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
public class LiteralRestrictionDescr
- extends EvaluatorBasedRestrictionDescr
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:
- Serialized Form
Constructor Summary |
LiteralRestrictionDescr()
|
LiteralRestrictionDescr(String evaluator,
boolean isNegated,
List<String> parameters,
String text,
int type)
|
LiteralRestrictionDescr(String evaluator,
boolean isNegated,
String text)
|
LiteralRestrictionDescr(String evaluator,
boolean isNegated,
String parameterText,
String text,
int type)
|
LiteralRestrictionDescr(String evaluator,
String text)
|
Methods inherited from class org.drools.lang.descr.BaseDescr |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, readExternal, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal |
TYPE_NULL
public static final int TYPE_NULL
- See Also:
- Constant Field Values
TYPE_NUMBER
public static final int TYPE_NUMBER
- See Also:
- Constant Field Values
TYPE_STRING
public static final int TYPE_STRING
- See Also:
- Constant Field Values
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
LiteralRestrictionDescr
public LiteralRestrictionDescr()
LiteralRestrictionDescr
public LiteralRestrictionDescr(String evaluator,
String text)
LiteralRestrictionDescr
public LiteralRestrictionDescr(String evaluator,
boolean isNegated,
String text)
LiteralRestrictionDescr
public LiteralRestrictionDescr(String evaluator,
boolean isNegated,
String parameterText,
String text,
int type)
LiteralRestrictionDescr
public LiteralRestrictionDescr(String evaluator,
boolean isNegated,
List<String> parameters,
String text,
int type)
toString
public String toString()
- Overrides:
toString
in class EvaluatorBasedRestrictionDescr
getType
public int getType()
setType
public void setType(int type)
getValue
public Object getValue()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.