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

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

public class UserActionSpec
extends ActionSpec

This class represents a user action of PDF.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Constructor Summary
UserActionSpec(java.lang.String user)
          Creates a new object.
 
Method Summary
protected  java.lang.String getUser()
          Getter for user.
static ActionSpec parseActionSpec(Context context, TokenSource source, Typesetter typesetter, java.lang.String name)
          Parse a user 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

UserActionSpec

public UserActionSpec(java.lang.String user)
Creates a new object.

Parameters:
user - the user
Method Detail

parseActionSpec

public static ActionSpec parseActionSpec(Context context,
                                         TokenSource source,
                                         Typesetter typesetter,
                                         java.lang.String name)
                                  throws InterpreterException
Parse a user 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

getUser

protected java.lang.String getUser()
Getter for user.

Returns:
the user

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)