|
||||||||||
| 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.LeafNode
A leaf node in an expression tree applies a comparison operator to an attribute and a literal value.
| Field Summary | |
static java.lang.String[] |
alternateOpNames
|
static int |
MAX_OP_INDEX
|
static int |
OP_CUSTOM
|
static int |
OP_EQ
|
static int |
OP_GT
|
static int |
OP_GTEQ
|
static int |
OP_LT
|
static int |
OP_LTEQ
|
static int |
OP_NEQ
|
static int |
OP_UNKNOWN_OR_CUSTOM
|
static java.lang.String[] |
opNames
|
| Constructor Summary | |
LeafNode(int operator,
java.lang.String attribName,
java.lang.Object literal)
Creates a LeafNode |
|
LeafNode(int operator,
java.lang.String opName,
java.lang.String attribName,
java.lang.Object literal)
Creates a LeafNode with a custom operator |
|
| Method Summary | |
java.lang.String |
getAlternateOperatorName()
Return the altername name of the operator at this LeafNode. |
java.lang.String |
getAttrib2Name()
|
java.lang.String |
getAttribName()
Return the name of the attribute at this LeafNode. |
static int |
getLeafOperator(java.lang.String leafOpName)
Gets an operator given its name. |
java.lang.Object |
getLiteral()
Return the literal at this LeafNode. |
java.lang.String |
getOperatorName()
Return the name of the operator at this LeafNode. |
void |
setAttrib2Name(java.lang.String attrib2Name)
|
void |
setAttribName(java.lang.String attribName)
Set the name of the attribute at this LeafNode. |
void |
setCustomOperator(java.lang.String opName)
Set this node's operator |
void |
setLiteral(java.lang.Object literal)
Set the literal at this LeafNode. |
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_EQ
public static final int OP_NEQ
public static final int OP_GT
public static final int OP_GTEQ
public static final int OP_LT
public static final int OP_LTEQ
public static final int MAX_OP_INDEX
public static final int OP_CUSTOM
public static final int OP_UNKNOWN_OR_CUSTOM
public static final java.lang.String[] opNames
public static final java.lang.String[] alternateOpNames
| Constructor Detail |
public LeafNode(int operator,
java.lang.String attribName,
java.lang.Object literal)
operator - the operator of this LeafNode.
public LeafNode(int operator,
java.lang.String opName,
java.lang.String attribName,
java.lang.Object literal)
operator - the operator of this LeafNode.| Method Detail |
public static int getLeafOperator(java.lang.String leafOpName)
leafOpName - name of the operator to retrieve
public java.lang.String getOperatorName()
getOperatorName in class ExpressionNodepublic java.lang.String getAlternateOperatorName()
public void setOperator(int operator)
setOperator in class ExpressionNodeoperator - this node's operatorpublic void setCustomOperator(java.lang.String opName)
public java.lang.String getAttribName()
public void setAttribName(java.lang.String attribName)
attribName - the name of the attribute at this LeafNodepublic java.lang.String getAttrib2Name()
public void setAttrib2Name(java.lang.String attrib2Name)
public java.lang.Object getLiteral()
public void setLiteral(java.lang.Object literal)
literal - the literal at this LeafNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||