|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.swt.mcie.parser.token.Token
de.upb.swt.mcie.parser.token.Sep
public class Sep
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.
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 |
---|
public static final int COMMA
public static final int SEMICOLON
private int type
Constructor Detail |
---|
public Sep(int type)
type
- Method Detail |
---|
public int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |