Package com.singularsys.jep.misc.boundvariable

# Class ChainedObjectVariableBindingMapper

java.lang.Object
com.singularsys.jep.misc.boundvariable.ChainedObjectVariableBindingMapper

All Implemented Interfaces:
  `VariableBindingMapper`, `Serializable`

public class ChainedObjectVariableBindingMapper extends Object implements VariableBindingMapper
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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChainedObjectVariableBindingMapper(String sep)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `VariableBinding`
  `mapVariableName(String name)`
  Creates a VariableBinding for a given variable name
  `Object`
  `put(String key, Object value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ChainedObjectVariableBindingMapper

    public ChainedObjectVariableBindingMapper(String sep)
    Parameters:
      `sep` - the separator splitting parts of a variable name.

- ## Method Details

  - ### put

    public Object put(String key, Object value)

  - ### mapVariableName

    public VariableBinding mapVariableName(String name)
    Description copied from interface: `VariableBindingMapper`
    Creates a VariableBinding for a given variable name
    Specified by:
      `mapVariableName` in interface `VariableBindingMapper`
    Parameters:
      `name` - name of the variable
    Returns:
      a VariableBinding or null if the name cannot be mapped.