de.dante.extex.interpreter.primitives.math.util
Interface MathCodeConvertible

All Known Implementing Classes:
Mathchar, Omathchar, OmegaMathcharCode, TeXMathcharCode

public interface MathCodeConvertible

This interface describes a primitive which can deliver a MathCode.

Version:
$Revision: 1.1 $
Author:
Gerd Neugebauer

Method Summary
 MathCode convertMathCode(Context context, TokenSource source, Typesetter typesetter)
          This method converts an implementing class into a MathCode.
 

Method Detail

convertMathCode

public MathCode convertMathCode(Context context,
                                TokenSource source,
                                Typesetter typesetter)
                         throws InterpreterException
This method converts an implementing class into a MathCode. It might be necessary to read further tokens to determine which value to use. For instance an additional register number might be required. In this case the additional arguments Context and TokenSource can be used.

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter to use for conversion
Returns:
the converted value
Throws:
InterpreterException - in case of an error