|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.car.ExpressionNode
public class ExpressionNode
A reduced expression node in an operator-precedence parsing tree.
| Field Summary | |
|---|---|
protected ExpressionNode |
_node1
Expression node 1 contained in the current expression node. |
protected ExpressionNode |
_node2
Expression node 2 contained in the current expression node. |
protected String |
_nval
Constant contained in the current expression node. |
protected int |
_operator
One of Symbol.TK_AND, Symbol.TK_OR, Symbol.TK_NOT. |
int |
etype
Expression node type. |
| Constructor Summary | |
|---|---|
ExpressionNode()
Create a default empty expression node. |
|
| Method Summary | |
|---|---|
protected void |
_pushExpression(ExpressionNode n)
Pushes an expression node into the expression node. |
protected void |
_pushNumber(long nval)
Pushes a const into the expression node. |
protected void |
_pushOperator(int operator)
Pushes a function into the expression node. |
boolean |
eval(HashSet value)
Evaluate the expression node. |
void |
push(Symbol sym)
Pushes a symbol into the expression node. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int etype
protected ExpressionNode _node1
protected ExpressionNode _node2
protected String _nval
protected int _operator
| Constructor Detail |
|---|
public ExpressionNode()
| Method Detail |
|---|
public void push(Symbol sym)
throws ExpressionException
ExpressionException
protected void _pushExpression(ExpressionNode n)
throws ExpressionException
ExpressionException
protected void _pushOperator(int operator)
throws ExpressionException
ExpressionException
protected void _pushNumber(long nval)
throws ExpressionException
ExpressionException
public boolean eval(HashSet value)
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 | |||||||||