gnu.mapping

Class InheritingEnvironment

public class InheritingEnvironment extends SimpleEnvironment

Constructor Summary
InheritingEnvironment(String name, Environment parent)
Method Summary
voidaddParent(Environment env)
LocationEnumerationenumerateAllLocations()
NamedLocationgetLocation(Symbol name, Object property, int hash, boolean create)
intgetNumParents()
EnvironmentgetParent(int index)
protected booleanhasMoreElements(LocationEnumeration it)
NamedLocationlookup(Symbol name, Object property, int hash)
NamedLocationlookupInherited(Symbol name, Object property, int hash)
protected voidtoStringBase(StringBuffer sbuf)

Constructor Detail

InheritingEnvironment

public InheritingEnvironment(String name, Environment parent)

Method Detail

addParent

public void addParent(Environment env)

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()

getLocation

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

getNumParents

public final int getNumParents()

getParent

public final Environment getParent(int index)

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)

lookup

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

lookupInherited

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

toStringBase

protected void toStringBase(StringBuffer sbuf)