public class RegexNFAStateFilter extends RegexNFAStateBase implements RegexNFAState
Constructor and Description |
---|
RegexNFAStateFilter(String nodeNum,
String variableName,
int streamNum,
boolean multiple,
Pair<ExprNode,ExprEvaluator> expression,
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 RegexNFAStateFilter(String nodeNum, String variableName, int streamNum, boolean multiple, Pair<ExprNode,ExprEvaluator> expression, boolean exprRequiresMultimatchState)
nodeNum
- node numvariableName
- variable namestreamNum
- stream numbermultiple
- true for multiple matchesexpression
- 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