de.dante.extex.interpreter.primitives.typesetter
Class AbstractHorizontalCode

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.typesetter.AbstractHorizontalCode
All Implemented Interfaces:
Code, Localizable, java.io.Serializable
Direct Known Subclasses:
Hfi, Hfil, Hfill, Hfilneg, Hskip, Hss

public abstract class AbstractHorizontalCode
extends AbstractCode

This an abstract base class for primitives in horizontal mode.

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
AbstractHorizontalCode(java.lang.String codeName)
          Creates a new object.
 
Method Summary
protected  void ensureHorizontalMode(Typesetter typesetter)
          Check that the current mode is a horizontal mode and throw an exception if another mode is detected.
protected  void switchToHorizontalMode(Typesetter typesetter)
          Check that the current mode is a horizontal mode and open a new list maker if another mode is detected.
 
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

AbstractHorizontalCode

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

Parameters:
codeName - the name of the code
Method Detail

ensureHorizontalMode

protected void ensureHorizontalMode(Typesetter typesetter)
                             throws HelpingException
Check that the current mode is a horizontal mode and throw an exception if another mode is detected.

Parameters:
typesetter - the typesetter to ask for the mode
Throws:
HelpingException - in case of an error

switchToHorizontalMode

protected void switchToHorizontalMode(Typesetter typesetter)
                               throws InterpreterException
Check that the current mode is a horizontal mode and open a new list maker if another mode is detected.

Parameters:
typesetter - the typesetter to ask for the mode
Throws:
InterpreterException - in case of an error