Package sleep.bridges

Class DefaultVariable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Hashtable values  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultVariable()  
    • Field Detail

      • values

        protected java.util.Hashtable values
    • Constructor Detail

      • DefaultVariable

        public DefaultVariable()
    • Method Detail

      • scalarExists

        public boolean scalarExists​(java.lang.String key)
        Description copied from interface: Variable
        true if a scalar named key exists in this variable environment
        Specified by:
        scalarExists in interface Variable
      • getScalar

        public Scalar getScalar​(java.lang.String key)
        Description copied from interface: Variable
        returns the specified scalar, if scalarExists says it is in the environment, this method has to return a scalar
        Specified by:
        getScalar in interface Variable
      • putScalar

        public Scalar putScalar​(java.lang.String key,
                                Scalar value)
        Description copied from interface: Variable
        put a scalar into this variable environment
        Specified by:
        putScalar in interface Variable
      • removeScalar

        public void removeScalar​(java.lang.String key)
        Description copied from interface: Variable
        remove a scalar from this variable environment
        Specified by:
        removeScalar in interface Variable
      • createLocalVariableContainer

        public Variable createLocalVariableContainer()
        Description copied from interface: Variable
        returns which variable environment is used to temporarily store local variables.
        Specified by:
        createLocalVariableContainer in interface Variable
      • createInternalVariableContainer

        public Variable createInternalVariableContainer()
        Description copied from interface: Variable
        returns which variable environment is used to store non-global / non-local variables. this is also used to create the global scope for a forked script environment.
        Specified by:
        createInternalVariableContainer in interface Variable