|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
public abstract class SimpleScope
A base class for objects providing simple scopes.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
SimpleScope(Scope parentScope)
Creates a new simple scope. |
|
| Method Summary | ||
|---|---|---|
void |
addListener(ScopeUpdateListener listener)
Adds a listener for changes in scope. |
|
void |
dispose()
Releases the resources associated with this scope. |
|
|
get(String name,
Class<T> clazz)
Looks up a symbol in this scope. |
|
Scope |
getParentScope()
Returns a reference to the parent scope, or null if this is the top level. |
|
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
|
void |
removeListener(ScopeUpdateListener listener)
Removes a listener for changes in scope. |
|
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleScope(Scope parentScope)
| Method Detail |
|---|
public void dispose()
public String getScopeName()
Scopenull
if qualified symbols cannot specifically address this scope.
getScopeName in interface Scopepublic Scope getParentScope()
Scopenull if this is the top level.
getParentScope in interface Scope
public <T> T get(String name,
Class<T> clazz)
Scope
get in interface Scopenull if not found.public void addListener(ScopeUpdateListener listener)
Scope
addListener in interface Scopepublic void removeListener(ScopeUpdateListener listener)
Scope
removeListener in interface Scopepublic void scopeUpdated(ScopeEvent event)
ScopeUpdateListener
scopeUpdated in interface ScopeUpdateListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||