|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Scope
Provides a means to resolve symbols in a dynamic, hierarchical fashion. Symbols can be mapped
to Functions, Variables, or arbitrary objects (often mutable ones, so that
values can change after resolution).
| Field Summary | |
|---|---|
static String |
EPOCH
The name of a special symbol that we expect to map to a MutableLong containing the
base time of the scope's owner (such at the time at which an animation started). |
static String |
NOW
The name of a special symbol that we expect to map to a MutableLong containing the
current time as sampled at the beginning of each frame. |
| Method Summary | ||
|---|---|---|
void |
addListener(ScopeUpdateListener listener)
Adds a listener for changes in 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. |
|
| Field Detail |
|---|
static final String NOW
MutableLong containing the
current time as sampled at the beginning of each frame.
static final String EPOCH
MutableLong containing the
base time of the scope's owner (such at the time at which an animation started).
| Method Detail |
|---|
String getScopeName()
null
if qualified symbols cannot specifically address this scope.
Scope getParentScope()
null if this is the top level.
<T> T get(String name,
Class<T> clazz)
null if not found.void addListener(ScopeUpdateListener listener)
void removeListener(ScopeUpdateListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||