|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.car.Expression
public class Expression
| Field Summary | |
|---|---|
ExpressionNode |
enode
The top of the parse tree. |
Vector |
symbolQueue
The symbol queue created for operator-precedence parsing. |
Stack |
symbolStack
The operator, expression node stack created for operator-precedence parsing. |
| Constructor Summary | |
|---|---|
Expression()
|
|
Expression(String expr)
|
|
| Method Summary | |
|---|---|
boolean |
appendSymbol(Symbol sym)
Append a symbol to the end of an expression. |
boolean |
eval(HashSet value)
Evaluate the expression. |
String |
getErrMsg()
Return a string indicates where the parsing error occurs. |
static Symbol |
nextSymbol(StreamTokenizer st)
Fetch the next symbol from the input expression string. |
static Symbol |
toSymbol(String s)
Convert a string to a symbol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ExpressionNode enode
public Vector symbolQueue
public Stack symbolStack
| Constructor Detail |
|---|
public Expression()
public Expression(String expr)
throws ExpressionException
ExpressionException| Method Detail |
|---|
public boolean appendSymbol(Symbol sym)
throws ExpressionException
ExpressionExceptionpublic boolean eval(HashSet value)
public static Symbol toSymbol(String s)
public static Symbol nextSymbol(StreamTokenizer st)
throws IOException,
ExpressionException
IOException
ExpressionExceptionpublic String getErrMsg()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||