public class LiteralExpressionHandler extends ExpressionHandler
| Constructor and Description |
|---|
LiteralExpressionHandler(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(Trace trace,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method evaluates the supplied information against this
expression.
|
void |
init(Processor processor,
ProcessorAction action,
boolean predicate)
This method initialises the expression handler.
|
boolean |
test(Trace trace,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method evaluates the supplied information against this
expression representing a predicate.
|
getExpression, getIssues, isUsesContent, isUsesHeaders, setExpression, setIssuespublic LiteralExpressionHandler(Expression expression)
expression - public void init(Processor processor, ProcessorAction action, boolean predicate)
ExpressionHandlerinit in class ExpressionHandlerprocessor - The processoraction - The actionpredicate - Whether the expression is a predicatepublic boolean test(Trace trace, Node node, Direction direction, Map<String,?> headers, Object[] values)
ExpressionHandlertest in class ExpressionHandlertrace - The tracenode - The nodedirection - The directionheaders - The optional headersvalues - The valuespublic String evaluate(Trace trace, Node node, Direction direction, Map<String,?> headers, Object[] values)
ExpressionHandlerevaluate in class ExpressionHandlertrace - The tracenode - The nodedirection - The directionheaders - The optional headersvalues - The valuesCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.