de.dante.extex.interpreter.primitives.omega.dir
Class AbstractDirCode

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.omega.dir.AbstractDirCode
All Implemented Interfaces:
Code, Localizable, java.io.Serializable
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: 1.2 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
AbstractDirCode(java.lang.String codeName)
          Creates a new object.
 
Method Summary
protected  Direction scanDir(TokenSource source, Context context)
          Scan a direction specification.
 
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
 

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(java.lang.String codeName)
Creates a new object.

Parameters:
codeName - the name of the primitive for tracing
Method Detail

scanDir

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

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