public class RegexNFAStateOneOptional extends RegexNFAStateBase implements RegexNFAState
Constructor and Description |
---|
RegexNFAStateOneOptional(String nodeNum,
String variableName,
int streamNum,
boolean multiple,
boolean isGreedy,
ExprEvaluator exprEvaluator,
boolean exprRequiresMultimatchState)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isExprRequiresMultimatchState()
Whether or not the match-expression requires multimatch state
|
boolean |
matches(EventBean[] eventsPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Evaluate a match.
|
String |
toString() |
addState, getNextStates, getNodeNumFlat, getNodeNumNested, getStreamNum, getVariableName, isGreedy, isMultiple, setNodeNumFlat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNextStates, getNodeNumFlat, getNodeNumNested, getStreamNum, getVariableName, isGreedy, isMultiple
public RegexNFAStateOneOptional(String nodeNum, String variableName, int streamNum, boolean multiple, boolean isGreedy, ExprEvaluator exprEvaluator, boolean exprRequiresMultimatchState)
nodeNum
- node numvariableName
- variable namestreamNum
- stream numbermultiple
- true for multiple matchesisGreedy
- true for greedyexprEvaluator
- filter expressionexprRequiresMultimatchState
- indicator for multi-match state requiredpublic boolean matches(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
RegexNFAState
matches
in interface RegexNFAState
eventsPerStream
- variabele valuesexprEvaluatorContext
- expression evaluation contextpublic boolean isExprRequiresMultimatchState()
RegexNFAState
isExprRequiresMultimatchState
in interface RegexNFAState