E
- public abstract class JaninoEventEvaluatorBase<E> extends EventEvaluatorBase<E>
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_THRESHOLD |
Constructor and Description |
---|
JaninoEventEvaluatorBase() |
Modifier and Type | Method and Description |
---|---|
void |
addMatcher(Matcher matcher) |
boolean |
evaluate(E event)
Evaluates whether the event passed as parameter matches some user-specified
criteria.
|
java.lang.String |
getExpression() |
java.util.List<Matcher> |
getMatcherList() |
void |
setExpression(java.lang.String expression) |
void |
start() |
getName, isStarted, setName, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final int ERROR_THRESHOLD
public void start()
start
in interface LifeCycle
start
in class EventEvaluatorBase<E>
public boolean evaluate(E event) throws EvaluationException
EventEvaluator
The Evaluator
is free to evaluate the event as it pleases. In
particular, the evaluation results may depend on previous events.
event
- The event to evaluateEvaluationException
- may be thrown during faulty evaluationpublic java.lang.String getExpression()
public void setExpression(java.lang.String expression)
public void addMatcher(Matcher matcher)
public java.util.List<Matcher> getMatcherList()
Copyright © 2010 - 2020 Adobe. All Rights Reserved