JavaScript is disabled on your browser.
Skip navigation links
gnu.mapping

Class SimpleEnvironment

  • All Implemented Interfaces:
    Named
    Direct Known Subclasses:
    InheritingEnvironment


    public class SimpleEnvironment
    extends Environment 
    Concrete implementation of Environment. (Should consider merging this code with Table2D.)
    • Constructor Detail

      • SimpleEnvironment

        public SimpleEnvironment()
      • SimpleEnvironment

        public SimpleEnvironment(java.lang.String name)
      • SimpleEnvironment

        public SimpleEnvironment(int capacity)
    • Method Detail

      • size

        public int size()
        Size does not include inherited Locations.
      • getCurrentLocation

        public static Location getCurrentLocation(java.lang.String name)
      • lookupDirect

        public NamedLocation lookupDirect(Symbol name,
         java.lang.Object property,
         int hash)
      • addUnboundLocation

        protected NamedLocation addUnboundLocation(Symbol name,
         java.lang.Object property,
         int hash)
      • put

        public void put(Symbol key,
         java.lang.Object property,
         java.lang.Object newValue)
        Overrides:
        put in class Environment
      • define

        public NamedLocation define(Symbol sym,
         java.lang.Object property,
         int hash,
         java.lang.Object newValue)
      • define

        public void define(Symbol sym,
         java.lang.Object property,
         java.lang.Object newValue)
        Specified by:
        define in class Environment
      • redefineError

        protected void redefineError(Symbol name,
         java.lang.Object property,
         Location loc)
      • unlink

        public Location unlink(Symbol symbol,
         java.lang.Object property,
         int hash)
        Description copied from class: Environment
        Remove Location from this Environment. Does not explicitly undefine the location itself.
        Overrides:
        unlink in class Environment
      • writeExternal

        public void writeExternal(java.io.ObjectOutput out)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal(java.io.ObjectInput in)
         throws java.io.IOException,
         java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readResolve

        public java.lang.Object readResolve()
         throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException
      • entrySet

        public java.util.Set entrySet()
      • toStringVerbose

        public java.lang.String toStringVerbose()
        Description copied from class: Environment
        Overridden in sub-classes - useful for more verbose debug output.
        Overrides:
        toStringVerbose in class Environment
      • toStringBase

        protected void toStringBase(java.lang.StringBuffer sbuf)
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /