de.dante.extex.interpreter.type.count
Interface CountConvertible

All Known Implementing Classes:
AbstractMath, AbstractReadonlyCount, Badness, CatcodePrimitive, CharCode, CountPrimitive, Currentgrouplevel, Currentgrouptype, Currentifbranch, Currentiflevel, Currentiftype, Delcode, Dimenexpr, DimenPrimitive, Dp, Efcode, Fontchardp, Fontcharht, Fontcharic, Fontcharwd, Glueshrink, Glueshrinkorder, Gluestretch, Gluestretchorder, Ht, Hyphenchar, Inputlineno, IntegerCode, Interactionmode, Lastkern, Lastpenalty, Lccode, LeftHyphenmin, Mag, MathAbs, MathACos, MathAdd, MathASin, MathATan, MathATanTwo, MathCeil, MathcodePrimitive, MathCos, MathDiv, MathE, MathExp, MathExpression, MathFloor, MathLog, MathMax, MathMin, MathMul, MathPi, MathPow, MathRandom, MathRint, MathRound, MathSin, MathSqrt, MathSub, MathTan, MathToDegrees, MathToRadians, NamedReal, Numexpr, Odelcode, Oglueshrinkorder, Ogluestretchorder, OmathcodePrimitive, OmegaMathcharCode, Parshape, Parshapedimen, Parshapeindent, Parshapelength, Pdffontobjnum, Pdflastannot, Pdflastobj, Pdflastxform, Pdflastximage, Prevdepth, RightHyphenmin, Sfcode, Skewchar, Spacefactor, TeXMathcharCode, Uccode, Wd

public interface CountConvertible

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

Version:
$Revision: 1.6 $
Author:
Gerd Neugebauer

Method Summary
 long convertCount(Context context, TokenSource source, Typesetter typesetter)
          This method converts a register into a count.
 

Method Detail

convertCount

public long convertCount(Context context,
                         TokenSource source,
                         Typesetter typesetter)
                  throws InterpreterException
This method converts a register into a count. 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