de.dante.extex.interpreter.primitives.pdftex.util.id
Class IdSpec

java.lang.Object
  extended byde.dante.extex.interpreter.primitives.pdftex.util.id.IdSpec
Direct Known Subclasses:
NameIdSpec, NumIdSpec

public abstract class IdSpec
extends java.lang.Object

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

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Constructor Summary
protected IdSpec()
          Creates a new object.
 
Method Summary
static IdSpec parseIdSpec(Context context, TokenSource source, Typesetter typesetter, java.lang.String name)
          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,
                                 java.lang.String name)
                          throws InterpreterException
This method parses an id spec.

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