de.upb.swt.mcie.parser.token
Class Sep

java.lang.Object
  extended by de.upb.swt.mcie.parser.token.Token
      extended by de.upb.swt.mcie.parser.token.Sep

public class Sep
extends Token

Implements a token for a separator. Currently, there are two types of separators, a comma (COMMA) and a semicolon (SEMICOLON). Future extensions will, probably, have more types.

Author:
Ekkart Kindler, kindler@upb.de

Field Summary
static int COMMA
          The code for a comma.
static int SEMICOLON
          The code for a semicolon.
private  int type
          The type of the separator.
 
Constructor Summary
Sep(int type)
          Constructs a token for the given separator type.
 
Method Summary
 int getType()
          Returns the type of the separator.
 
Methods inherited from class de.upb.swt.mcie.parser.token.Token
setReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMA

public static final int COMMA
The code for a comma.

See Also:
Constant Field Values

SEMICOLON

public static final int SEMICOLON
The code for a semicolon.

See Also:
Constant Field Values

type

private int type
The type of the separator.

Constructor Detail

Sep

public Sep(int type)
Constructs a token for the given separator type.

Parameters:
type -
Method Detail

getType

public int getType()
Returns the type of the separator.

Returns:
the type of the separator