|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.car.Symbol
public class Symbol
An input symbol in an expression.
| Field Summary | |
|---|---|
ExpressionNode |
enode
The reduced expression node, if symbol type if SYM_EXPRNODE. |
long |
nval
The value of a TK_NUMBER token. |
int |
stype
Symbol type of the symbol. |
static int |
SYM_EXPRNODE
|
static int |
SYM_TERMINAL
|
static int |
SYM_UNKNOWN
|
static int |
TK_AND
|
static int |
TK_BRACKETL
|
static int |
TK_BRACKETR
|
static int |
TK_EOE
|
static int |
TK_NOT
|
static int |
TK_NUMBER
|
static int |
TK_OR
|
int |
ttype
The terminal type of the symbol, if symbol type if SYM_TERMINAL. |
| Constructor Summary | |
|---|---|
Symbol()
Create an empty symbol. |
|
Symbol(int type,
ExpressionNode en)
Create an Expression token with symbol type specified as SYM_EXPRNODE, and an expression node. |
|
Symbol(int type,
int tk)
Create a token symbol with symbol type and token type. |
|
Symbol(int type,
int tk,
long val)
Create a Number token with symbol type specified as SYM_TERMINAL, token type specified as TK_NUMBER and a value |
|
| Method Summary | |
|---|---|
boolean |
equal(Symbol a)
|
boolean |
greater(Symbol a)
|
boolean |
isEOE()
|
boolean |
isExpressionNode()
|
boolean |
less(Symbol a)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SYM_UNKNOWN
public static final int SYM_EXPRNODE
public static final int SYM_TERMINAL
public static final int TK_EOE
public static final int TK_NUMBER
public static final int TK_BRACKETL
public static final int TK_BRACKETR
public static final int TK_NOT
public static final int TK_AND
public static final int TK_OR
public int stype
public int ttype
public ExpressionNode enode
public long nval
| Constructor Detail |
|---|
public Symbol()
public Symbol(int type,
int tk)
public Symbol(int type,
int tk,
long val)
public Symbol(int type,
ExpressionNode en)
| Method Detail |
|---|
public boolean isEOE()
public boolean isExpressionNode()
public boolean equal(Symbol a)
throws ExpressionException
ExpressionException
public boolean less(Symbol a)
throws ExpressionException
ExpressionException
public boolean greater(Symbol a)
throws ExpressionException
ExpressionExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||