de.dante.extex.interpreter.type
Interface CodeExpander

All Known Implementing Classes:
Noexpand, The

public interface CodeExpander

This is an interface for those primitives which are protected during expansion of arguments of primitives like \edef, \xdef, \message, and others..

Version:
$Revision: 1.1 $
Author:
Gerd Neugebauer
See Also:
TokenSource.scanUnprotectedTokens(Context, boolean, boolean, String)

Method Summary
 void expandCode(Context context, TokenSource source, Typesetter typesetter, Tokens tokens)
          Expand the first token and place the result in a token list.
 

Method Detail

expandCode

public void expandCode(Context context,
                       TokenSource source,
                       Typesetter typesetter,
                       Tokens tokens)
                throws InterpreterException
Expand the first token and place the result in a token list. During the expansion additional tokens might be used.

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter
tokens - the target token list
Throws:
InterpreterException - in case of an error