public abstract class AbstractCondition extends java.lang.Object implements EvaluationCondition
Modifier and Type | Method and Description |
---|---|
SearchCriteria.Operator |
getOperator()
Return the SearchCriteria operator associated with the condition
|
java.lang.String |
getRuleName() |
int |
getToksSize() |
static EvaluationCondition |
newCondition(Condition cond)
Static factory method for creating an EvaluationCondition using the specified SearchCriteria Condition.
|
static EvaluationCondition |
newCondition(Condition tmpCond,
java.lang.String tmpRuleName)
Static factory method for creating an AbstractCondition using the specified SearchCriteria Condition
and rule name
Creates and returns an instance of a sub-class of CompositeCondition or SimpleCondition
The class returned is based on the operator contained in the Condition.
|
void |
prepopulateTokMap(java.util.Map tmpTokMap,
java.util.Map tmpTokPathMap)
Walk the condition tree pre-populating the string tokenizer map with
entries that we know will be used repeatedly if the condition is
evaluated multiple times.
|
void |
printAllTokKeys() |
void |
printTokenizerMapSize() |
void |
setRuleName(java.lang.String tmpRuleName) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTrue
public static EvaluationCondition newCondition(Condition cond)
cond
- public static EvaluationCondition newCondition(Condition tmpCond, java.lang.String tmpRuleName)
tmpCond
- tmpRuleName
- public final SearchCriteria.Operator getOperator()
public final java.lang.String getRuleName()
getRuleName
in interface EvaluationCondition
public final void setRuleName(java.lang.String tmpRuleName)
setRuleName
in interface EvaluationCondition
public int getToksSize()
public void printTokenizerMapSize()
public void prepopulateTokMap(java.util.Map tmpTokMap, java.util.Map tmpTokPathMap)
tmpTokMap
- public void printAllTokKeys()