de.dante.extex.interpreter.type
Interface ExpandableCode

All Known Implementing Classes:
AbstractIf, AbstractMarksCode, Char, CharCode, CountPrimitive, Csname, Detokenize, DimenPrimitive, Dp, Efcode, Expandafter, Fi, Fontchardp, Fontcharht, Fontcharic, Fontcharwd, Fontdimen, Fontname, Ht, Hyphenchar, Inputfilename, IntegerCode, Jobname, Lccode, Lowercase, MacroCode, Mag, Namespace, Noexpand, Number, Pdffontname, Romannumeral, Scantokens, Skewchar, StringPrimitive, The, Uccode, Unexpanded, Wd

public interface ExpandableCode

This interface describes the feature of being expandable code.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Method Summary
 void expand(Flags prefix, Context context, TokenSource source, Typesetter typesetter)
          This method takes the first token and expands it.
 

Method Detail

expand

public void expand(Flags prefix,
                   Context context,
                   TokenSource source,
                   Typesetter typesetter)
            throws InterpreterException
This method takes the first token and expands it. The result is placed on the stack. This means that expandable code does one step of expansion and puts the result on the stack. To expand a token it might be necessary to consume further tokens.

Parameters:
prefix - the prefix flags controlling the expansion
context - the interpreter context
source - the token source
typesetter - the typesetter
Throws:
InterpreterException - in case of an error