de.dante.extex.interpreter.unit.tex
Class TraceCommandObserver

java.lang.Object
  extended byde.dante.extex.interpreter.unit.tex.TraceCommandObserver
All Implemented Interfaces:
CommandObserver

public class TraceCommandObserver
extends java.lang.Object
implements CommandObserver

Observer for tracing the execution of tokens. The token is written to the log file enclosed in braces.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Constructor Summary
TraceCommandObserver(java.util.logging.Logger theLogger, Context context)
          Creates a new object.
 
Method Summary
 void update(Token token)
          This method is meant to be invoked just before a token is executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceCommandObserver

public TraceCommandObserver(java.util.logging.Logger theLogger,
                            Context context)
Creates a new object.

Parameters:
theLogger - the logger for potential output
context - the interpreter context for access to \tracingonline
Method Detail

update

public void update(Token token)
This method is meant to be invoked just before a token is executed. A token following a prefix code is ignored if \tracingcommands is

Specified by:
update in interface CommandObserver
Parameters:
token - the token to be expanded