Class StandardEvaluationContext
java.lang.Object
org.apache.nifi.attribute.expression.language.StandardEvaluationContext
- All Implemented Interfaces:
EvaluationContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EvaluatorState
private final ParameterLookup
private final ValueLookup
-
Constructor Summary
ConstructorDescriptionStandardEvaluationContext
(Map<String, String> variables) StandardEvaluationContext
(Map<String, String> variables, Map<String, String> stateMap, ParameterLookup parameterLookup) StandardEvaluationContext
(ValueLookup valueLookup, Map<String, String> stateMap, ParameterLookup parameterLookup) -
Method Summary
Modifier and TypeMethodDescriptionReturns the names of all attributes, variables, etc.getExpressionValue
(String name) Returns the name of an attribute, variable, environment variable, or system variable that can be referenced in the Expression LanguagegetParameter
(String parameterName)
-
Field Details
-
valueLookup
-
stateMap
-
parameterLookup
-
evaluatorState
-
-
Constructor Details
-
StandardEvaluationContext
-
StandardEvaluationContext
-
StandardEvaluationContext
public StandardEvaluationContext(ValueLookup valueLookup, Map<String, String> stateMap, ParameterLookup parameterLookup)
-
-
Method Details
-
getExpressionValue
Description copied from interface:EvaluationContext
Returns the name of an attribute, variable, environment variable, or system variable that can be referenced in the Expression Language- Specified by:
getExpressionValue
in interfaceEvaluationContext
- Parameters:
name
- the name of the attribute, variable, etc.- Returns:
- the value assigned to the attribute, variable, etc. or
null
if no such value exists
-
getExpressionKeys
Description copied from interface:EvaluationContext
Returns the names of all attributes, variables, etc. that can be used in Expression Language- Specified by:
getExpressionKeys
in interfaceEvaluationContext
- Returns:
- the names of all keys that can be used in Expression Language
-
getState
- Specified by:
getState
in interfaceEvaluationContext
-
getParameter
- Specified by:
getParameter
in interfaceEvaluationContext
-
getEvaluatorState
- Specified by:
getEvaluatorState
in interfaceEvaluationContext
-