Class AbstractMathCode

  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.math.AbstractMathCode
All Implemented Interfaces:
Code, Localizable,
Direct Known Subclasses:
Above, AbstractOmegaDelimiter, AbstractOmegaMathCode, AbstractTeXDelimiter, AbstractTeXMathCode, Atop, Displaylimits, Displaystyle, Eqno, Leqno, Limits, Mathbin, Mathchoice, Mathclose, Mathinner, Mathop, Mathopen, Mathord, Mathpunct, Mathrel, Mkern, Mskip, Nolimits, Nonscript, Over, Overline, Scriptscriptstyle, Scriptstyle, Textstyle, Underline, Vcenter

public abstract class AbstractMathCode
extends AbstractCode

This is the base class for all math primitives using the TeX encoding. It tries to ensure that the primitive is invoked in math mode only.

$Revision: 1.14 $
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode
Constructor Summary
AbstractMathCode(java.lang.String name)
          Creates a new object.
Method Summary
protected  NoadConsumer getListMaker(Context context, Typesetter typesetter)
          Get the current list maker as Noad consumer.
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, execute, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public AbstractMathCode(java.lang.String name)
Creates a new object.

name - the name for tracing and debugging
Method Detail


protected NoadConsumer getListMaker(Context context,
                                    Typesetter typesetter)
                             throws MissingMathException
Get the current list maker as Noad consumer. If the current list maker is not of the proper type then an exception is thrown.

context - the interpreter context
typesetter - the master typesetter
the current list maker
MissingMathException - in case that the current mode is not a math mode