|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.cmu.aura.service.query.ExpressionNode
|
+--edu.cmu.aura.service.query.BoolNode
A boolean node in an expression tree applies a boolean operator to the results of its children.
| Field Summary | |
static int |
MAX_OP_INDEX
|
static int |
OP_AND
|
static int |
OP_NOT
|
static int |
OP_OR
|
static java.lang.String[] |
opNames
|
| Constructor Summary | |
BoolNode(int operator,
ExpressionNode leftChild)
Creates a BoolNode with a unary operator. |
|
BoolNode(int operator,
ExpressionNode leftChild,
ExpressionNode rightChild)
Creates a BoolNode with a binary operator. |
|
| Method Summary | |
static int |
getBoolOperator(java.lang.String boolOpName)
Gets an operator given its name. |
ExpressionNode |
getLeftChild()
Get the left child of this node. |
java.lang.String |
getOperatorName()
Return the name of the operator at this BoolNode. |
ExpressionNode |
getRightChild()
Get the right child of this node. |
boolean |
isUnary()
Returns whether or not this BoolNode is unary. |
void |
setOperator(int operator)
Set this node's operator |
| Methods inherited from class edu.cmu.aura.service.query.ExpressionNode |
getOperator, isLeafNode |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OP_AND
public static final int OP_OR
public static final int OP_NOT
public static final int MAX_OP_INDEX
public static final java.lang.String[] opNames
| Constructor Detail |
public BoolNode(int operator,
ExpressionNode leftChild,
ExpressionNode rightChild)
operator - the operator at this BoolNodeleftChild - the leftChild of this BoolNoderightChild - the rightChild of this BoolNode
public BoolNode(int operator,
ExpressionNode leftChild)
operator - the operator at this BoolNodeleftChild - the leftChild of this BoolNode| Method Detail |
public static int getBoolOperator(java.lang.String boolOpName)
boolOpName - name of the operator to retrieve
public void setOperator(int operator)
setOperator in class ExpressionNodeoperator - this node's operatorpublic java.lang.String getOperatorName()
getOperatorName in class ExpressionNodepublic final ExpressionNode getLeftChild()
public final ExpressionNode getRightChild()
public boolean isUnary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||