org.extex.pdf.api.action
Class ActionSpec

java.lang.Object
  extended by org.extex.pdf.api.action.ActionSpec
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GotoActionSpec, ThreadActionSpec, UserActionSpec

public abstract class ActionSpec
extends java.lang.Object
implements java.io.Serializable

This is the abstract base class for actions in PDF.

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

Constructor Summary
ActionSpec()
           
 
Method Summary
static ActionSpec parseActionSpec(Context context, TokenSource source, Typesetter typesetter, CodeToken primitive)
          Parse an action spec.
abstract  java.lang.Object visit(ActionVisitor visitor)
          This method is the entry point for the visitor pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSpec

public ActionSpec()
Method Detail

parseActionSpec

public static ActionSpec parseActionSpec(Context context,
                                         TokenSource source,
                                         Typesetter typesetter,
                                         CodeToken primitive)
                                  throws HelpingException,
                                         TypesetterException
Parse an action spec.

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter
primitive - the name of the primitive
Returns:
the action spec found
Throws:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter

visit

public abstract java.lang.Object visit(ActionVisitor visitor)
This method is the entry point for the visitor pattern.

Parameters:
visitor - the visitor to call back
Returns:
an arbitrary return object