|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A name table interface
Method Summary | |
java.lang.Object |
access(java.lang.String name)
Access the value associated with name |
java.util.Map |
asMap()
Return map representation of this nametable |
java.lang.Object |
assign(java.lang.String name,
java.lang.Object value)
Assign a variable in the name table |
boolean |
containsName(java.lang.String name)
Whether the nametable contains the name |
void |
declare(java.lang.String name,
java.lang.Object value)
Declare a variable in the name table |
void |
undeclare(java.lang.String name)
Undeclare the name |
Method Detail |
public void declare(java.lang.String name, java.lang.Object value)
name
- the namevalue
- the valuepublic java.lang.Object assign(java.lang.String name, java.lang.Object value)
name
- the namevalue
- the value
public boolean containsName(java.lang.String name)
name
- the name
public java.lang.Object access(java.lang.String name)
name
-
public void undeclare(java.lang.String name)
name
- public java.util.Map asMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |