org.extex.pdf.api.id
Class IdSpec

java.lang.Object
  extended by org.extex.pdf.api.id.IdSpec
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NameIdSpec, NumIdSpec

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

This is the abstract base class for ids. An id can either be a number or a name.

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

Constructor Summary
protected IdSpec()
          Creates a new object.
 
Method Summary
static IdSpec parseIdSpec(Context context, TokenSource source, Typesetter typesetter, CodeToken prmitive)
          This method parses an id spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdSpec

protected IdSpec()
Creates a new object.

Method Detail

parseIdSpec

public static IdSpec parseIdSpec(Context context,
                                 TokenSource source,
                                 Typesetter typesetter,
                                 CodeToken prmitive)
                          throws HelpingException,
                                 TypesetterException
This method parses an id spec.

Parameters:
source - the source for new tokens
context - the interpreter context
typesetter - the typesetter
prmitive - the name of the current primitive
Returns:
the id instance
Throws:
HelpingException - in case of an parse error
TypesetterException - in case of an error in the typesetter