gnu.mapping

Class SimpleEnvironment

public class SimpleEnvironment extends Environment

Concrete implementation of Environment. (Should consider merging this code with Table2D.)
Constructor Summary
SimpleEnvironment()
SimpleEnvironment(String name)
SimpleEnvironment(int capacity)
Method Summary
NamedLocationaddLocation(Symbol name, Object property, Location loc)
protected NamedLocationaddUnboundLocation(Symbol name, Object property, int hash)
NamedLocationdefine(Symbol sym, Object property, int hash, Object newValue)
voiddefine(Symbol sym, Object property, Object newValue)
SetentrySet()
LocationEnumerationenumerateAllLocations()
Does enumerate inherited Locations.
LocationEnumerationenumerateLocations()
Does not enumerate inherited Locations.
static LocationgetCurrentLocation(String name)
NamedLocationgetLocation(Symbol name, Object property, int hash, boolean create)
protected booleanhasMoreElements(LocationEnumeration it)
NamedLocationlookup(Symbol name, Object property, int hash)
NamedLocationlookupDirect(Symbol name, Object property, int hash)
static Objectlookup_global(Symbol name)
voidput(Symbol key, Object property, Object newValue)
voidreadExternal(ObjectInput in)
ObjectreadResolve()
protected voidredefineError(Symbol name, Object property, Location loc)
intsize()
Size does not include inherited Locations.
protected voidtoStringBase(StringBuffer sbuf)
StringtoStringVerbose()
Locationunlink(Symbol symbol, Object property, int hash)
voidwriteExternal(ObjectOutput out)

Constructor Detail

SimpleEnvironment

public SimpleEnvironment()

SimpleEnvironment

public SimpleEnvironment(String name)

SimpleEnvironment

public SimpleEnvironment(int capacity)

Method Detail

addLocation

public NamedLocation addLocation(Symbol name, Object property, Location loc)

addUnboundLocation

protected NamedLocation addUnboundLocation(Symbol name, Object property, int hash)

define

public NamedLocation define(Symbol sym, Object property, int hash, Object newValue)

define

public void define(Symbol sym, Object property, Object newValue)

entrySet

public Set entrySet()

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()
Does enumerate inherited Locations.

enumerateLocations

public LocationEnumeration enumerateLocations()
Does not enumerate inherited Locations.

getCurrentLocation

public static Location getCurrentLocation(String name)

getLocation

public NamedLocation getLocation(Symbol name, Object property, int hash, boolean create)

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)

lookup

public NamedLocation lookup(Symbol name, Object property, int hash)

lookupDirect

public NamedLocation lookupDirect(Symbol name, Object property, int hash)

lookup_global

public static Object lookup_global(Symbol name)

put

public void put(Symbol key, Object property, Object newValue)

readExternal

public void readExternal(ObjectInput in)

readResolve

public Object readResolve()

redefineError

protected void redefineError(Symbol name, Object property, Location loc)

size

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

toStringBase

protected void toStringBase(StringBuffer sbuf)

toStringVerbose

public String toStringVerbose()

unlink

public Location unlink(Symbol symbol, Object property, int hash)

writeExternal

public void writeExternal(ObjectOutput out)