de.dante.extex.interpreter.primitives.pdftex.util.action
Class ThreadActionSpec

java.lang.Object
  extended byde.dante.extex.interpreter.primitives.pdftex.util.action.ActionSpec
      extended byde.dante.extex.interpreter.primitives.pdftex.util.action.ThreadActionSpec

public class ThreadActionSpec
extends ActionSpec

This class represents a thread action spec.

Version:
$Revision: 1.5 $
Author:
Gerd Neugebauer

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, java.lang.String name)
          Parse a thread action spec.
 java.lang.String toString()
           
 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,
                                         java.lang.String name)
                                  throws InterpreterException
Parse a thread action spec.

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

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()
See Also:
Object.toString()

visit

public java.lang.Object visit(ActionVisitor visitor)
Description copied from class: ActionSpec
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( de.dante.extex.interpreter.primitives.pdftex.util.action.ActionVisitor)