edu.utah.janosvm.kit.util
Class SharedTableWriter
java.lang.Object
|
+--edu.utah.janosvm.kit.util.SharedTableWriter
- public class SharedTableWriter
- extends java.lang.Object
Method Summary |
java.lang.Object |
get(java.lang.Object name)
Get an object out of the table. |
SharedTableReader |
getReader()
|
void |
put(java.lang.Object name,
java.lang.Object obj)
Put an association into the table. |
void |
remove(java.lang.Object name)
Remove the given identifier and its associated object from the table. |
void |
sync()
Synchronize the local table with the globally shared one. |
void |
sync(boolean collapse)
Synchronize the local table with the globally shared one. |
java.lang.String |
toString()
|
void |
walk(SharedTableWalker walker)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SharedTableWriter
public SharedTableWriter()
put
public void put(java.lang.Object name,
java.lang.Object obj)
- Put an association into the table.
- Parameters:
name
- An identifier to associate with the given object.obj
- The object to store in the table.
get
public java.lang.Object get(java.lang.Object name)
- Get an object out of the table.
- Parameters:
name
- The identifier associated with the object.- Returns:
- The object associated with the given identifier.
remove
public void remove(java.lang.Object name)
- Remove the given identifier and its associated object from the table.
- Parameters:
name
- The identifier to remove.
sync
public void sync(boolean collapse)
- Synchronize the local table with the globally shared one. Basically,
apply any differences from the last sync.
- Parameters:
collapse
- Force the collapse of the table stack.
sync
public void sync()
- Synchronize the local table with the globally shared one. Basically,
apply any differences from the last sync.
getReader
public SharedTableReader getReader()
- Returns:
- The SharedTableReader object connected to this writer.
walk
public void walk(SharedTableWalker walker)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
This documentation is Copyright (C) 2000-2001 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Jun 1, 2001