org.extex.interpreter.parser
Interface ScaledConvertible


public interface ScaledConvertible

This is an interface which describes the feature to be convertible into a scaled number.

Version:
$Revision: 4404 $
Author:
Gerd Neugebauer

Method Summary
 long convertScaled(Context context, TokenSource source, Typesetter typesetter)
          This method converts a register into a scaled number.
 

Method Detail

convertScaled

long convertScaled(Context context,
                   TokenSource source,
                   Typesetter typesetter)
                   throws HelpingException
This method converts a register into a scaled number. 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