public class ExpressionGuard extends Object implements Guard
MatchedEventMap
instances pass until then.Constructor and Description |
---|
ExpressionGuard(MatchedEventConvertor convertor,
ExprEvaluator expression,
Quitable quitable) |
Modifier and Type | Method and Description |
---|---|
void |
accept(EventGuardVisitor visitor) |
boolean |
inspect(MatchedEventMap matchEvent)
Returns true if inspection shows that the match events can pass, or false to not pass.
|
void |
startGuard()
Start the guard operation.
|
void |
stopGuard()
Called when sub-expression quits, or when the pattern stopped.
|
public ExpressionGuard(MatchedEventConvertor convertor, ExprEvaluator expression, Quitable quitable)
public void startGuard()
Guard
startGuard
in interface Guard
public boolean inspect(MatchedEventMap matchEvent)
Guard
public void stopGuard()
Guard
public void accept(EventGuardVisitor visitor)