Class CompiledExpression
java.lang.Object
org.apache.nifi.attribute.expression.language.CompiledExpression
- All Implemented Interfaces:
Expression
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompiledExpression
(String expression, Evaluator<?> rootEvaluator, org.antlr.runtime.tree.Tree tree, Set<Evaluator<?>> allEvaluators) -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(EvaluationContext evaluationContext, AttributeValueDecorator decorator) Evaluates this Expression against the given variables, attribute decorator, and state variablesEvaluator
<?> org.antlr.runtime.tree.Tree
getTree()
-
Field Details
-
rootEvaluator
-
tree
private final org.antlr.runtime.tree.Tree tree -
expression
-
allEvaluators
-
-
Constructor Details
-
CompiledExpression
-
-
Method Details
-
getRootEvaluator
-
getTree
public org.antlr.runtime.tree.Tree getTree() -
getExpression
-
getAllEvaluators
-
evaluate
Description copied from interface:Expression
Evaluates this Expression against the given variables, attribute decorator, and state variables- Specified by:
evaluate
in interfaceExpression
- Parameters:
evaluationContext
- the context used to evaluate the Expressiondecorator
- decorator to decorate variable values- Returns:
- the evaluated value
-