|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--sjm.examples.sling.Scope
This class holds a collection of variables.
| Field Summary | |
protected java.util.Hashtable |
dictionary
|
| Constructor Summary | |
Scope()
|
|
| Method Summary | |
boolean |
isDefined(java.lang.String name)
Returns true if a variable of the given name appears in this scope. |
Variable |
lookup(java.lang.String name)
Returns a variable of the given name from this scope. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected java.util.Hashtable dictionary
| Constructor Detail |
public Scope()
| Method Detail |
public boolean isDefined(java.lang.String name)
String - the variable namepublic Variable lookup(java.lang.String name)
String - the variable name
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||