org.extex.pdf.api.action
Class ThreadActionSpec

java.lang.Object
  extended by org.extex.pdf.api.action.ActionSpec
      extended by org.extex.pdf.api.action.ThreadActionSpec
All Implemented Interfaces:
java.io.Serializable

public class ThreadActionSpec
extends ActionSpec

This class represents a thread action spec.

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

Constructor Summary
ThreadActionSpec(java.lang.String file, IdSpec id)
          Creates a new object.
 
Method Summary
protected  java.lang.String getFile()
          Getter for file.
protected  IdSpec getId()
          Getter for id.
static ActionSpec parseActionSpec(Context context, TokenSource source, Typesetter typesetter, CodeToken primitive)
          Parse a thread action spec.
 java.lang.String toString()
          Returns a string representation of the object.
 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, wait, wait, wait
 

Constructor Detail

ThreadActionSpec

public ThreadActionSpec(java.lang.String file,
                        IdSpec id)
Creates a new object.

Parameters:
file - the file
id - the id
Method Detail

parseActionSpec

public static ActionSpec parseActionSpec(Context context,
                                         TokenSource source,
                                         Typesetter typesetter,
                                         CodeToken primitive)
                                  throws HelpingException,
                                         TypesetterException
Parse a thread 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

getId

protected IdSpec getId()
Getter for id. The id can either be a number or a name. This value is not null.

Returns:
the id

getFile

protected java.lang.String getFile()
Getter for file. This value is not null.

Returns:
the file

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.
See Also:
Object.toString()

visit

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

Specified by:
visit in class ActionSpec
Parameters:
visitor - the visitor to call back
Returns:
an arbitrary return object
See Also:
ActionSpec.visit( org.extex.pdf.api.action.ActionVisitor)