Interface VariableContext
-
- All Known Implementing Classes:
CompositeVariableContext
,EmptyVariableContext
,SingleVariableContext
,VariableMapImpl
,VariableScopeContext
public interface VariableContext
A context for variables. Allows resolving variables. An API may choose to accept a VariableContext instead of a map of concrete values in situations where passing all available variables would be expensive and lazy-loading is a desirable optimization.- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsVariable(String variableName)
Checks whether a variable with the given name is resolve through this context.Set<String>
keySet()
TypedValue
resolve(String variableName)
Resolve a value in this context.
-
-
-
Method Detail
-
resolve
TypedValue resolve(String variableName)
Resolve a value in this context.- Parameters:
variableName
- the name of the variable to resolve.- Returns:
- the value of the variable or null in case the variable does not exist.
-
containsVariable
boolean containsVariable(String variableName)
Checks whether a variable with the given name is resolve through this context.- Parameters:
variableName
- the name of the variable to check- Returns:
- true if the variable is resolve.
-
-