org.extex.pdf.api.action
Class UserActionSpec

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

public class UserActionSpec
extends ActionSpec

This class represents a user action of PDF.

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

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, CodeToken name)
          Parse a user 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

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,
                                         CodeToken name)
                                  throws HelpingException,
                                         TypesetterException
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:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter

getUser

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

Returns:
the user

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)