public static class FlowByExpression.ExpressionClause extends FlowByExpression.ExpressionNode implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FlowByExpression.ExpressionClause.ExpressionType |
Constructor and Description |
---|
ExpressionClause() |
ExpressionClause(FlowByExpression.ExpressionClause.ExpressionType operator,
java.lang.String lhsAttributeName,
java.lang.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
|
java.lang.String |
getLHSAttName()
Get the lhs attribute name
|
FlowByExpression.ExpressionClause.ExpressionType |
getOperator()
Get the operator
|
java.lang.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(java.lang.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(java.lang.String opp)
Set the rhs operand
|
javax.swing.tree.DefaultMutableTreeNode |
toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
Get a DefaultMutableTreeNode for this node
|
java.lang.String |
toString() |
void |
toStringDisplay(java.lang.StringBuffer buff)
Get the display representation of this node
|
void |
toStringInternal(java.lang.StringBuffer buff)
Get the internal representation of this node
|
isNegated, isOr, setIsOr, setNegated, setShowAndOr
public ExpressionClause()
public ExpressionClause(FlowByExpression.ExpressionClause.ExpressionType operator, java.lang.String lhsAttributeName, java.lang.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 java.lang.String getLHSAttName()
public void setLHSAttName(java.lang.String attName)
attName
- the lhs att naempublic java.lang.String getRHSOperand()
public void setRHSOperand(java.lang.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.ExpressionNode
init
in class FlowByExpression.ExpressionNode
structure
- the structure of the incoming instancesenv
- Environment variablespublic boolean evaluate(Instance inst, boolean result)
FlowByExpression.ExpressionNode
evaluate
in class FlowByExpression.ExpressionNode
inst
- the incoming instance to evalute withresult
- the result to combine withpublic java.lang.String toString()
toString
in class java.lang.Object
public void toStringDisplay(java.lang.StringBuffer buff)
FlowByExpression.ExpressionNode
toStringDisplay
in class FlowByExpression.ExpressionNode
buff
- the string buffer to append topublic void toStringInternal(java.lang.StringBuffer buff)
FlowByExpression.ExpressionNode
toStringInternal
in class FlowByExpression.ExpressionNode
buff
- the string buffer to append topublic javax.swing.tree.DefaultMutableTreeNode toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
FlowByExpression.ExpressionNode
toJTree
in class FlowByExpression.ExpressionNode
parent
- the parent of this node (if any)