Class StandardEvaluationContext
java.lang.Object
org.apache.nifi.attribute.expression.language.StandardEvaluationContext
- All Implemented Interfaces:
EvaluationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EvaluatorStateprivate final ParameterLookupprivate final ValueLookup -
Constructor Summary
ConstructorsConstructorDescriptionStandardEvaluationContext(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. that can be used in Expression LanguagegetExpressionValue(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:EvaluationContextReturns the name of an attribute, variable, environment variable, or system variable that can be referenced in the Expression Language- Specified by:
getExpressionValuein interfaceEvaluationContext- Parameters:
name- the name of the attribute, variable, etc.- Returns:
- the value assigned to the attribute, variable, etc. or
nullif no such value exists
-
getExpressionKeys
Description copied from interface:EvaluationContextReturns the names of all attributes, variables, etc. that can be used in Expression Language- Specified by:
getExpressionKeysin interfaceEvaluationContext- Returns:
- the names of all keys that can be used in Expression Language
-
getState
- Specified by:
getStatein interfaceEvaluationContext
-
getParameter
- Specified by:
getParameterin interfaceEvaluationContext
-
getEvaluatorState
- Specified by:
getEvaluatorStatein interfaceEvaluationContext
-