Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Environment
gnu.mapping.SimpleEnvironment
public class SimpleEnvironment
extends Environment
Environment
.
(Should consider merging this code with Table2D.)
Field Summary |
Fields inherited from class gnu.mapping.Environment | |
INDIRECT_DEFINES |
Constructor Summary | |
| |
|
Method Summary | |
NamedLocation |
|
protected NamedLocation |
|
void | |
NamedLocation | |
java.util.Set |
|
LocationEnumeration |
|
LocationEnumeration |
|
static Location |
|
NamedLocation |
|
protected boolean | |
NamedLocation | |
NamedLocation |
|
static Object |
|
void | |
void |
|
Object | |
protected void |
|
int |
|
protected void |
|
String |
|
Location | |
void |
|
Methods inherited from class gnu.mapping.Environment | |
addLocation , addLocation , addLocation , containsKey , current , defaultNamespace , define , enumerateAllLocations , enumerateLocations , get , get , get , get , get , getCanDefine , getCanRedefine , getChecked , getCurrent , getFlags , getFunction , getFunction , getGlobal , getInstance , getLocation , getLocation , getLocation , getLocation , getLocation , getSymbol , hasMoreElements , isBound , isBound , isLocked , lookup , lookup , lookup , make , make , make , put , put , put , put , putFunction , remove , remove , remove , remove , remove , removeFunction , setCanDefine , setCanRedefine , setCurrent , setFlag , setGlobal , setIndirectDefines , setLocked , toString , toStringVerbose , unlink , user |
Methods inherited from class gnu.mapping.PropertySet | |
getName , getProperty , getSymbol , removeProperty , setName , setProperty , setProperty , setSymbol |
public SimpleEnvironment()
public SimpleEnvironment(String name)
public SimpleEnvironment(int capacity)
public NamedLocation addLocation(Symbol name, Object property, Location loc)
- Overrides:
- addLocation in interface Environment
protected NamedLocation addUnboundLocation(Symbol name, Object property, int hash)
public void define(Symbol sym, Object property, Object newValue)
- Overrides:
- define in interface Environment
public java.util.Set entrySet()
public LocationEnumeration enumerateAllLocations()
Does enumerate inherited Locations.
- Overrides:
- enumerateAllLocations in interface Environment
public LocationEnumeration enumerateLocations()
Does not enumerate inherited Locations.
- Overrides:
- enumerateLocations in interface Environment
public NamedLocation getLocation(Symbol name, Object property, int hash, boolean create)
- Overrides:
- getLocation in interface Environment
protected boolean hasMoreElements(LocationEnumeration it)
- Overrides:
- hasMoreElements in interface Environment
public NamedLocation lookup(Symbol name, Object property, int hash)
- Overrides:
- lookup in interface Environment
public void put(Symbol key, Object property, Object newValue)
- Overrides:
- put in interface Environment
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public Object readResolve() throws ObjectStreamException
public int size()
Size does not include inherited Locations.
protected void toStringBase(StringBuffer sbuf)
public String toStringVerbose()
Overridden in sub-classes - useful for more verbose debug output.
- Overrides:
- toStringVerbose in interface Environment
public Location unlink(Symbol symbol, Object property, int hash)
Remove Location from this Environment. Does not explicitly undefine the location itself.
- Overrides:
- unlink in interface Environment
public void writeExternal(ObjectOutput out) throws IOException