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(java.lang.String variableName)
Checks whether a variable with the given name is resolve through this context.java.util.Set<java.lang.String>
keySet()
TypedValue
resolve(java.lang.String variableName)
Resolve a value in this context.
-
-
-
Method Detail
-
resolve
TypedValue resolve(java.lang.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(java.lang.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.
-
keySet
java.util.Set<java.lang.String> keySet()
- Returns:
- a set of all variable names resolvable through this Context.
-
-