public class CompiledExpression extends Object implements Expression
Modifier and Type | Field and Description |
---|---|
private Set<Evaluator<?>> |
allEvaluators |
private String |
expression |
private Evaluator<?> |
rootEvaluator |
private org.antlr.runtime.tree.Tree |
tree |
Constructor and Description |
---|
CompiledExpression(String expression,
Evaluator<?> rootEvaluator,
org.antlr.runtime.tree.Tree tree,
Set<Evaluator<?>> allEvaluators) |
Modifier and Type | Method and Description |
---|---|
String |
evaluate(EvaluationContext evaluationContext,
AttributeValueDecorator decorator)
Evaluates this Expression against the given variables, attribute decorator, and state variables
|
Set<Evaluator<?>> |
getAllEvaluators() |
String |
getExpression() |
Evaluator<?> |
getRootEvaluator() |
org.antlr.runtime.tree.Tree |
getTree() |
private final Evaluator<?> rootEvaluator
private final org.antlr.runtime.tree.Tree tree
private final String expression
public Evaluator<?> getRootEvaluator()
public org.antlr.runtime.tree.Tree getTree()
public String getExpression()
public String evaluate(EvaluationContext evaluationContext, AttributeValueDecorator decorator)
Expression
evaluate
in interface Expression
evaluationContext
- the context used to evaluate the Expressiondecorator
- decorator to decorate variable valuesCopyright © 2019 Apache NiFi Project. All rights reserved.