de.dante.extex.interpreter.primitives.math
Class AbstractMathCode

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.math.AbstractMathCode
All Implemented Interfaces:
Code, Localizable, java.io.Serializable
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.

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

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode
serialVersionUID
 
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

AbstractMathCode

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

Parameters:
name - the name for tracing and debugging
Method Detail

getListMaker

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.

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