org.extex.unit.omega.dir
Class AbstractDirCode

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.unit.omega.dir.AbstractDirCode
All Implemented Interfaces:
java.io.Serializable, Code
Direct Known Subclasses:
Mathdir, Pagedir, PagedirHL, PagedirHR, PardirHL, PardirHR, Textdir

public class AbstractDirCode
extends AbstractCode

This is the abstract base class for primitives acquiring a direction.

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
AbstractDirCode(CodeToken token)
          Creates a new object.
 
Method Summary
protected  Direction scanDir(TokenSource source, Context context)
          Scan a direction specification.
 
Methods inherited from class org.extex.interpreter.type.AbstractCode
execute, 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
 

Field Detail

serialVersionUID

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

See Also:
Constant Field Values
Constructor Detail

AbstractDirCode

public AbstractDirCode(CodeToken token)
Creates a new object.

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

scanDir

protected Direction scanDir(TokenSource source,
                            Context context)
                     throws HelpingException,
                            TypesetterException
Scan a direction specification.

Parameters:
source - the source for new tokens
context - the interpreter context
Returns:
the direction or null
Throws:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter