de.dante.extex.interpreter.primitives.register.muskip
Class MuskipPrimitive

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.type.AbstractAssignment
          extended byde.dante.extex.interpreter.primitives.register.muskip.MuskipParameter
              extended byde.dante.extex.interpreter.primitives.register.muskip.MuskipPrimitive
All Implemented Interfaces:
Advanceable, Code, Divideable, Localizable, Multiplyable, MuskipConvertible, java.io.Serializable, Theable

public class MuskipPrimitive
extends MuskipParameter

This class provides an implementation for the primitive \muskip. It sets the named muskip register to the value given, and as a side effect all prefixes are zeroed.

All features are inherited from MuskipParameter. Just the key has to be provided under which this Muskip has to be stored. This key is constructed from the name, a hash mark and the running number.

The Primitive \muskip

TODO missing documentation

Syntax

The formal description of this primitive is the following:
    ⟨muskip⟩
      → ⟨optional prefix⟩ \muskip  ⟨register name⟩ ⟨equals⟩ ⟨muglue⟩

   ⟨optional prefix⟩
     →
      |  \global ⟨optional prefix⟩  

Examples

   \muskip12=345mu plus 12mu  
   \muskip12=0mu plus 1.2fil  

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
MuskipPrimitive(java.lang.String name)
          Creates a new object.
 
Method Summary
protected  java.lang.String getKey(Context context, TokenSource source, Typesetter typesetter)
          Return the key (the number) for the muskip register.
 
Methods inherited from class de.dante.extex.interpreter.primitives.register.muskip.MuskipParameter
advance, assign, convertMuskip, divide, multiply, the
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractAssignment
execute
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, 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
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

MuskipPrimitive

public MuskipPrimitive(java.lang.String name)
Creates a new object.

Parameters:
name - the name for debugging
Method Detail

getKey

protected java.lang.String getKey(Context context,
                                  TokenSource source,
                                  Typesetter typesetter)
                           throws InterpreterException
Return the key (the number) for the muskip register.

Overrides:
getKey in class MuskipParameter
Parameters:
context - the interpreter context to use
source - the source for the next tokens – if required
typesetter - the typesetter
Returns:
the key for the muskip register
Throws:
InterpreterException - in case of an error