org.extex.unit.pdftex
Class AbstractPdftexCode

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.unit.pdftex.AbstractPdftexCode
All Implemented Interfaces:
java.io.Serializable, Code
Direct Known Subclasses:
Pdfannot, Pdfcatalog, Pdfdest, Pdfendlink, Pdfendthread, Pdffontname, Pdffontobjnum, Pdfincludechars, Pdfinfo, Pdflastannot, Pdflastobj, Pdflastxform, Pdflastximage, Pdfliteral, Pdfnames, Pdfobj, Pdfoutline, Pdfrefobj, Pdfrefxform, Pdfrefximage, Pdfstartlink, Pdfthread, Pdfxform, Pdfximage

public abstract class AbstractPdftexCode
extends AbstractCode

This class provides a base class for pdfTeX primitives.

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
AbstractPdftexCode(CodeToken token)
          Creates a new object.
 
Method Summary
protected  PdftexSupport ensurePdftex(Context context, Typesetter typesetter)
          Check that pdfTeX is active.
 
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

AbstractPdftexCode

public AbstractPdftexCode(CodeToken token)
Creates a new object.

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

ensurePdftex

protected PdftexSupport ensurePdftex(Context context,
                                     Typesetter typesetter)
                              throws PdftexException,
                                     NoHelpException
Check that pdfTeX is active.

Parameters:
context - the interpreter context
typesetter - the typesetter
Returns:
the casted document writer with pdf support
Throws:
PdftexException - in case that pdfTeX is not active
NoHelpException - in case of an exception in the back-end