public static class FlowByExpression.BracketNode extends FlowByExpression.ExpressionNode implements java.io.Serializable
| Constructor and Description |
|---|
BracketNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(FlowByExpression.ExpressionNode child)
Add a child to this bracket node
|
boolean |
evaluate(Instance inst,
boolean result)
Evaluate this node and combine with the result so far
|
void |
init(Instances structure,
Environment env)
Initialize the node
|
java.lang.String |
parseFromInternal(java.lang.String expression)
Parse and initialize from the internal representation
|
void |
removeChild(FlowByExpression.ExpressionNode child)
Remove a child from this bracket node
|
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, setShowAndOrpublic 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 addChild(FlowByExpression.ExpressionNode child)
child - the ExpressionNode to addpublic void removeChild(FlowByExpression.ExpressionNode child)
child - the ExpressionNode to removepublic java.lang.String toString()
toString in class java.lang.Objectpublic javax.swing.tree.DefaultMutableTreeNode toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
FlowByExpression.ExpressionNodetoJTree in class FlowByExpression.ExpressionNodeparent - the parent of this node (if any)public void toStringDisplay(java.lang.StringBuffer buff)
FlowByExpression.ExpressionNodetoStringDisplay in class FlowByExpression.ExpressionNodebuff - the string buffer to append topublic void toStringInternal(java.lang.StringBuffer buff)
FlowByExpression.ExpressionNodetoStringInternal in class FlowByExpression.ExpressionNodebuff - the string buffer to append topublic java.lang.String parseFromInternal(java.lang.String expression)
FlowByExpression.ExpressionNodeexpression - the expression to parse in internal representation