org.extex.interpreter.context.observer.code
Interface CodeObservable

All Known Implementing Classes:
ContextExtensionImpl, ContextImpl

public interface CodeObservable

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

Version:
$Revision$
Author:
Gerd Neugebauer

Method Summary
 void registerCodeChangeObserver(Token token, CodeObserver observer)
          Register an observer for code change events.
 void unregisterCodeChangeObserver(Token name, CodeObserver observer)
          Remove a registered observer for code change events.
 

Method Detail

registerCodeChangeObserver

void registerCodeChangeObserver(Token token,
                                CodeObserver observer)
Register an observer for code change events. Code change events are triggered when the assignment of a macro or active character changes. In this case the appropriate method in the observer is invoked.

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

unregisterCodeChangeObserver

void unregisterCodeChangeObserver(Token name,
                                  CodeObserver observer)
Remove a registered observer for code change events. Code change events are triggered when the assignment of a macro or active character changes. 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