public class Token
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AND_PR |
static int |
ARG |
static int |
CLOSE |
static Token |
CloseExp |
static int |
DI |
static int |
EQ_PR |
static int |
GEQ_PR |
static int |
GT_PR |
static int |
LEQ_PR |
static int |
LT_PR |
static int |
NEQ_PR |
static int |
OPEN |
static Token |
OpenExp |
static int |
OR_PR |
static int |
POST |
static int |
PRE |
Constructor and Description |
---|
Token(java.lang.String name,
int type)
This constructor sets the name and type to the input
values, and sets the priority to the input type.
|
Token(java.lang.String name,
int type,
int priority)
This constructor sets the name, type and priority
to the input values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
int |
getPriority() |
int |
getType() |
java.lang.String |
toString() |
public static final int ARG
public static final int PRE
public static final int OPEN
public static final int DI
public static final int POST
public static final int CLOSE
public static final int OR_PR
public static final int AND_PR
public static final int EQ_PR
public static final int NEQ_PR
public static final int LEQ_PR
public static final int LT_PR
public static final int GEQ_PR
public static final int GT_PR
public static Token OpenExp
public static Token CloseExp
public Token(java.lang.String name, int type)
name
- type
- public Token(java.lang.String name, int type, int priority)
name
- type
- priority
-