org.extex.unit.tex.register.skip
Class AbstractSkip

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.interpreter.type.AbstractAssignment
          extended by org.extex.unit.tex.register.skip.AbstractSkip
All Implemented Interfaces:
java.io.Serializable, Code
Direct Known Subclasses:
Skipdef, SkipPrimitive

public abstract class AbstractSkip
extends AbstractAssignment

This abstract base class provides the methods to compute the keys for numbered skip registers.

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

Constructor Summary
AbstractSkip(CodeToken token)
          Creates a new object.
 
Method Summary
protected  java.lang.String getKey(Context context, TokenSource source, Typesetter typesetter)
          Return the key (the name of the primitive) for the numbered skip register.
 
Methods inherited from class org.extex.interpreter.type.AbstractAssignment
assign, execute
 
Methods inherited from class org.extex.interpreter.type.AbstractCode
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSkip

public AbstractSkip(CodeToken token)
Creates a new object.

Parameters:
token - the initial token for the primitive
Method Detail

getKey

protected java.lang.String getKey(Context context,
                                  TokenSource source,
                                  Typesetter typesetter)
                           throws HelpingException,
                                  TypesetterException
Return the key (the name of the primitive) for the numbered skip register.

Parameters:
source - the source for new tokens
context - the interpreter context to use
typesetter - the typesetter
Returns:
the key for the current register
Throws:
HelpingException - in case that a derived class needs to throw an Exception this one is declared.
TypesetterException - in case of an error in the typesetter