org.extex.unit.tex.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:4431 $
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

MathCode convertMathCode(Context context,
                         TokenSource source,
                         Typesetter typesetter)
                         throws HelpingException,
                                TypesetterException
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:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter