|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.observer.expand.ExpandObserverList
This class provides a type-safe list of observers for the expand event.
Constructor Summary | |
ExpandObserverList()
|
Method Summary | |
void |
add(ExpandObserver observer)
Add an observer to the list. |
static ExpandObserver |
register(ExpandObserver list,
ExpandObserver observer)
Take a list and add an observer. |
void |
update(Token token)
Invoke all observers on the list to inform them of the token to be expanded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpandObserverList()
Method Detail |
public static ExpandObserver register(ExpandObserver list, ExpandObserver observer)
null
then
a new one is created.
list
- the input list or null
observer
- the observer to add
public void add(ExpandObserver observer)
observer
- the observer to add to the listpublic void update(Token token)
update
in interface ExpandObserver
token
- the token to be expanded
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |