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.

$Revision: 1.4 $
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


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.

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