public static class FlowByExpression.ExpressionClause extends FlowByExpression.ExpressionNode implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowByExpression.ExpressionClause.ExpressionType |
| Constructor and Description |
|---|
ExpressionClause() |
ExpressionClause(FlowByExpression.ExpressionClause.ExpressionType operator,
String lhsAttributeName,
String rhsOperand,
boolean rhsIsAttribute,
boolean isAnOr)
Construct a new ExpressionClause
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Instance inst,
boolean result)
Evaluate this node and combine with the result so far
|
String |
getLHSAttName()
Get the lhs attribute name
|
FlowByExpression.ExpressionClause.ExpressionType |
getOperator()
Get the operator
|
String |
getRHSOperand()
Get the rhs operand
|
void |
init(Instances structure,
Environment env)
Initialize the node
|
boolean |
isRHSAnAttribute()
Returns true if the RHS is an attribute rather than a constant
|
void |
setLHSAttName(String attName)
Set the lhs attribute name
|
void |
setOperator(FlowByExpression.ExpressionClause.ExpressionType opp)
Set the operator
|
void |
setRHSIsAnAttribute(boolean rhs)
Set whether the RHS is an attribute rather than a constant
|
void |
setRHSOperand(String opp)
Set the rhs operand
|
DefaultMutableTreeNode |
toJTree(DefaultMutableTreeNode parent)
Get a DefaultMutableTreeNode for this node
|
String |
toString() |
void |
toStringDisplay(StringBuffer buff)
Get the display representation of this node
|
void |
toStringInternal(StringBuffer buff)
Get the internal representation of this node
|
isNegated, isOr, setIsOr, setNegated, setShowAndOrpublic ExpressionClause()
public ExpressionClause(FlowByExpression.ExpressionClause.ExpressionType operator, String lhsAttributeName, String rhsOperand, boolean rhsIsAttribute, boolean isAnOr)
operator - the operator to uselhsAttributeName - the lhs attribute namerhsOperand - the rhs operandrhsIsAttribute - true if the rhs operand is an attributeisAnOr - true if the result of this expression is to be OR'ed with
the result so farpublic String getLHSAttName()
public void setLHSAttName(String attName)
attName - the lhs att naempublic String getRHSOperand()
public void setRHSOperand(String opp)
opp - the rhs operand to setpublic boolean isRHSAnAttribute()
public void setRHSIsAnAttribute(boolean rhs)
rhs - true if the RHS is an attribute rather than a constantpublic FlowByExpression.ExpressionClause.ExpressionType getOperator()
public void setOperator(FlowByExpression.ExpressionClause.ExpressionType opp)
opp - the operator to usepublic void init(Instances structure, Environment env)
FlowByExpression.ExpressionNodeinit in class FlowByExpression.ExpressionNodestructure - the structure of the incoming instancesenv - Environment variablespublic boolean evaluate(Instance inst, boolean result)
FlowByExpression.ExpressionNodeevaluate in class FlowByExpression.ExpressionNodeinst - the incoming instance to evalute withresult - the result to combine withpublic void toStringDisplay(StringBuffer buff)
FlowByExpression.ExpressionNodetoStringDisplay in class FlowByExpression.ExpressionNodebuff - the string buffer to append topublic void toStringInternal(StringBuffer buff)
FlowByExpression.ExpressionNodetoStringInternal in class FlowByExpression.ExpressionNodebuff - the string buffer to append topublic DefaultMutableTreeNode toJTree(DefaultMutableTreeNode parent)
FlowByExpression.ExpressionNodetoJTree in class FlowByExpression.ExpressionNodeparent - the parent of this node (if any)Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.