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, setShowAndOr
public 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 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.Object
public 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)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 java.lang.String parseFromInternal(java.lang.String expression)
FlowByExpression.ExpressionNode
expression
- the expression to parse in internal representation