Class ChainedObjectVariableBindingMapper
java.lang.Object
com.singularsys.jep.misc.boundvariable.ChainedObjectVariableBindingMapper
- All Implemented Interfaces:
VariableBindingMapper,Serializable
Creates VariableBinding objects by translating the variable name into a chain of object references.
For example "foo.a.b" might be translated into a reference to field "b" of the object at field "a" of an object.
- Since:
- Jep 3.5
- Author:
- Richard Morris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapVariableName(String name) Creates a VariableBinding for a given variable name
-
Constructor Details
-
ChainedObjectVariableBindingMapper
- Parameters:
sep- the separator splitting parts of a variable name.
-
-
Method Details
-
put
-
mapVariableName
Description copied from interface:VariableBindingMapperCreates a VariableBinding for a given variable name- Specified by:
mapVariableNamein interfaceVariableBindingMapper- Parameters:
name- name of the variable- Returns:
- a VariableBinding or null if the name cannot be mapped.
-