de.dante.extex.interpreter.context.observer.tokens
Interface TokensObservable

All Known Implementing Classes:
ContextImpl

public interface TokensObservable

This interface describes the possibility to register an observer for an tokens change event.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 void registerTokensObserver(java.lang.String name, TokensObserver observer)
          Register an observer for tokens change events.
 void unregisterTokensChangeObserver(java.lang.String name, TokensObserver observer)
          Remove a registered observer for toks change events.
 

Method Detail

registerTokensObserver

public void registerTokensObserver(java.lang.String name,
                                   TokensObserver observer)
Register an observer for tokens change events. Tokens change events are triggered when an assignment to a tokens register is performed. In this case the appropriate method in the observer is invoked.

Parameters:
name - the token to be observed. This should be a macro or active character token.
observer - the observer to receive the events

unregisterTokensChangeObserver

public void unregisterTokensChangeObserver(java.lang.String name,
                                           TokensObserver observer)
Remove a registered observer for toks change events. Tokens change events are triggered when an assignment to a tokens register is performed. In this case the appropriate method in the observer is invoked.

Parameters:
name - the token to be observed. This should be a macro or active character token.
observer - the observer to receive the events