Top Description Fields Constructors Methods
ch.qos.logback.core.boolex

public abstract Class JaninoEventEvaluatorBase<E>

extends EventEvaluatorBase<E>
Class Inheritance
Type Parameters
<E>
event type
Imports
java.util.ArrayList, .List, org.codehaus.janino.ScriptEvaluator

Abstract class which sets the groundwork for janino based evaluations.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
public static final int
private int
private String
pack-priv static Class<?>
protected List<Matcher>
pack-priv ScriptEvaluator
pack-priv static Class<?>[]
Inherited from ch.qos.logback.core.boolex.EventEvaluatorBase:
namestarted

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
evaluate(E
The event to evaluate
event
)

Implements ch.qos.logback.core.boolex.EventEvaluator.evaluate.

Evaluates whether the event passed as parameter matches some user-specified criteria.
protected abstract String
public String
public List<Matcher>
protected abstract String[]
protected abstract Class<?>[]
protected abstract Object[]
public void
setExpression(String expression)

public void
Inherited from ch.qos.logback.core.boolex.EventEvaluatorBase:
getNameisStartedsetNamestop

Field Detail

ERROR_THRESHOLDback to summary
public static final int ERROR_THRESHOLD
errorCountback to summary
private int errorCount
expressionback to summary
private String expression
EXPRESSION_TYPEback to summary
pack-priv static Class<?> EXPRESSION_TYPE
matcherListback to summary
protected List<Matcher> matcherList
scriptEvaluatorback to summary
pack-priv ScriptEvaluator scriptEvaluator
THROWN_EXCEPTIONSback to summary
pack-priv static Class<?>[] THROWN_EXCEPTIONS

Constructor Detail

JaninoEventEvaluatorBaseback to summary
public JaninoEventEvaluatorBase()

Method Detail

addMatcherback to summary
public void addMatcher(Matcher matcher)
evaluateback to summary
public boolean evaluate(E event) throws EvaluationException

Implements ch.qos.logback.core.boolex.EventEvaluator.evaluate.

Doc from ch.qos.logback.core.boolex.EventEvaluator.evaluate.

Evaluates whether the event passed as parameter matches some user-specified criteria.

The Evaluator is free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.

Parameters
event:E

The event to evaluate

Returns:boolean

true if there is a match, false otherwise.

Exceptions
EvaluationException:
may be thrown during faulty evaluation
getDecoratedExpressionback to summary
protected abstract String getDecoratedExpression()
getExpressionback to summary
public String getExpression()
getMatcherListback to summary
public List<Matcher> getMatcherList()
getParameterNamesback to summary
protected abstract String[] getParameterNames()
getParameterTypesback to summary
protected abstract Class<?>[] getParameterTypes()
getParameterValuesback to summary
protected abstract Object[] getParameterValues(E event)
setExpressionback to summary
public void setExpression(String expression)
startback to summary
public void start()

Overrides ch.qos.logback.core.boolex.EventEvaluatorBase.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Annotations
@Override