|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.observer.expandMacro.ExpandMacroObserverList
public final class ExpandMacroObserverList
This class provides a type-safe list of observers for the expand event.
| Constructor Summary | |
|---|---|
ExpandMacroObserverList()
|
|
| Method Summary | |
|---|---|
void |
add(ExpandMacroObserver observer)
Add an observer to the list. |
static ExpandMacroObserver |
register(ExpandMacroObserver list,
ExpandMacroObserver observer)
Take a list and add an observer. |
void |
update(Token token,
Code code,
Locator locator)
This method is meant to be invoked just before a macro is expanded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpandMacroObserverList()
| Method Detail |
|---|
public static ExpandMacroObserver register(ExpandMacroObserver list,
ExpandMacroObserver observer)
null then
a new one is created.
list - the input list or nullobserver - the observer to add
public void add(ExpandMacroObserver observer)
observer - the observer to add to the list
public void update(Token token,
Code code,
Locator locator)
update in interface ExpandMacroObservertoken - the token to be expandedcode - The code to which the token is expanded. This might be
null for undefined macroslocator - the locatorExpandMacroObserver.update(
org.extex.scanner.type.token.Token, org.extex.interpreter.type.Code,
org.extex.core.Locator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||