de.dante.extex.interpreter.primitives.macro.util
Class MacroPattern

java.lang.Object
  extended byde.dante.extex.interpreter.type.tokens.Tokens
      extended byde.dante.extex.interpreter.primitives.macro.util.MacroPattern
All Implemented Interfaces:
FixedTokens, java.io.Serializable

public class MacroPattern
extends Tokens

This class provides a container for the pattern of a macro.

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

Field Summary
static MacroPattern EMPTY
          The constant EMPTY contains the empty macro pattern.
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
MacroPattern()
          Creates a new object.
MacroPattern(Tokens tokens, int theArity)
          Creates a new object.
 
Method Summary
 int getArity()
          Getter for the arity.
 void setArity(int arity)
          Setter for the arity.
 
Methods inherited from class de.dante.extex.interpreter.type.tokens.Tokens
add, add, add, clear, equals, get, hashCode, insert, length, removeLast, show, toString, toString, toText, toText
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final MacroPattern EMPTY
The constant EMPTY contains the empty macro pattern. This can be used in a poor man's factory.


serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

MacroPattern

public MacroPattern()
Creates a new object.


MacroPattern

public MacroPattern(Tokens tokens,
                    int theArity)
Creates a new object.

Parameters:
tokens - the tokens contained
theArity - the number of parameters
Method Detail

getArity

public int getArity()
Getter for the arity. The arity is the number of parameters.

Returns:
the arity

setArity

public void setArity(int arity)
Setter for the arity.

Parameters:
arity - the new arity