de.dante.extex.interpreter.primitives.pdftex
Class AbstractPdftexCode

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

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

AbstractPdftexCode

public AbstractPdftexCode(java.lang.String name)
Creates a new object.

Parameters:
name - the name for tracing and debugging
Method Detail

ensurePdftex

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

Parameters:
context - the interpreter context
typesetter - the typesetter
Returns:
the casted document writer with pdf support
Throws:
InterpreterPdftexException - in case that pdfTeX is not active