Class BoundVariableFactory

    • Constructor Detail

      • BoundVariableFactory

        public BoundVariableFactory()
        Create the factory with no VariableMapping. When a new variable is requested
      • BoundVariableFactory

        public BoundVariableFactory​(VariableBindingMapper vbm)
        Create the factory with a specific VariableMapping for creation of new variables.
        Parameters:
        vbm - the mapping class translates a specific jep varable names to particualr objects
    • Method Detail

      • createVariable

        public Variable createVariable​(java.lang.String name,
                                       VariableBinding vb)
        Creates a variable with the given VariableBinding
        Parameters:
        name - name of the variable
        vb - binding object
        Returns:
        a new BoundVariable
      • getVariableMapping

        public VariableBindingMapper getVariableMapping()
        Gets the VariableMapping for the creation of new variables.
        Returns:
        the mapping used or null if none set.
      • setVariableMapping

        public void setVariableMapping​(VariableBindingMapper vm)
        Sets the VariableMapping for the creation of new variables.
        Parameters:
        vm - the mapping