Interface CountConvertible

All Known Implementing Classes:
AbstractMath, AbstractReadonlyCount, Badness, CatcodePrimitive, CharCode, CountArray, CountPrimitive, Currentgrouplevel, Currentgrouptype, Currentifbranch, Currentiflevel, Currentiftype, Delcode, Dimenexpr, DimenParameter, DimenPrimitive, Dp, Efcode, EtexVersion, Fontchardp, Fontcharht, Fontcharic, Fontcharwd, Glueshrink, Glueshrinkorder, Gluestretch, Gluestretchorder, Ht, Hyphenchar, Inputlineno, IntegerCode, IntegerParameter, Interactionmode, Lastkern, Lastnodetype, 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, NumberedReal, Numexpr, Odelcode, Oglueshrinkorder, Ogluestretchorder, OmathcodePrimitive, OmegaMathcharCode, Parshape, Parshapedimen, Parshapeindent, Parshapelength, Pdffontobjnum, Pdflastannot, Pdflastobj, Pdflastxform, Pdflastximage, Prevdepth, Prevgraf, RightHyphenmin, Sfcode, Skewchar, Spacefactor, TeXMathcharCode, Uccode, Wd

public interface CountConvertible

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

$Revision:4399 $
Gerd Neugebauer

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

Method Detail


long convertCount(Context context,
                  TokenSource source,
                  Typesetter typesetter)
                  throws HelpingException,
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.

context - the interpreter context
source - the source for new tokens
typesetter - the typesetter to use for conversion
the converted value
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
ConfigurationException - in case of an configuration error