de.dante.extex.interpreter.primitives.register.skip
Class Glueexpr

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.register.skip.Glueexpr
All Implemented Interfaces:
Code, Localizable, MuskipConvertible, java.io.Serializable

public class Glueexpr
extends AbstractCode
implements MuskipConvertible

This class provides an implementation for the primitive \glueexpr.

The Primitive \glueexpr

The primitive \glueexpr ...

TODO missing documentation

Syntax

The formal description of this primitive is the following:
    ⟨glueexpr⟩
      → \glueexpr 

Examples

    \glueexpr\skip0\relax  

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
Glueexpr(java.lang.String codeName)
          Creates a new object.
 
Method Summary
 Muskip convertMuskip(Context context, TokenSource source, Typesetter typesetter)
          This method converts a register into a muskip.
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, execute, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Glueexpr

public Glueexpr(java.lang.String codeName)
Creates a new object.

Parameters:
codeName - the name
Method Detail

convertMuskip

public Muskip convertMuskip(Context context,
                            TokenSource source,
                            Typesetter typesetter)
                     throws InterpreterException
Description copied from interface: MuskipConvertible
This method converts a register into a muskip. 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. The return value is the length in scaled points.

Specified by:
convertMuskip in interface MuskipConvertible
Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter to use for conversion
Returns:
the converted value in mu
Throws:
InterpreterException - in case of an error
See Also:
MuskipConvertible.convertMuskip( de.dante.extex.interpreter.context.Context, de.dante.extex.interpreter.TokenSource, de.dante.extex.typesetter.Typesetter)