Package weka.knowledgeflow.steps
Class FlowByExpression.BracketNode
- java.lang.Object
-
- weka.knowledgeflow.steps.FlowByExpression.ExpressionNode
-
- weka.knowledgeflow.steps.FlowByExpression.BracketNode
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FlowByExpression
public static class FlowByExpression.BracketNode extends FlowByExpression.ExpressionNode implements java.io.Serializable
An expression node that encloses other expression nodes in brackets- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BracketNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(FlowByExpression.ExpressionNode child)Add a child to this bracket nodebooleanevaluate(Instance inst, boolean result)Evaluate this node and combine with the result so farvoidinit(Instances structure, Environment env)Initialize the nodejava.lang.StringparseFromInternal(java.lang.String expression)voidremoveChild(FlowByExpression.ExpressionNode child)Remove a child from this bracket nodejavax.swing.tree.DefaultMutableTreeNodetoJTree(javax.swing.tree.DefaultMutableTreeNode parent)Get a DefaultMutableTreeNode for this nodejava.lang.StringtoString()voidtoStringDisplay(java.lang.StringBuffer buff)Get the display representation of this nodevoidtoStringInternal(java.lang.StringBuffer buff)Get the internal representation of this node-
Methods inherited from class weka.knowledgeflow.steps.FlowByExpression.ExpressionNode
isNegated, isOr, setIsOr, setNegated, setShowAndOr
-
-
-
-
Method Detail
-
init
public void init(Instances structure, Environment env)
Description copied from class:FlowByExpression.ExpressionNodeInitialize the node- Overrides:
initin classFlowByExpression.ExpressionNode- Parameters:
structure- the structure of the incoming instancesenv- Environment variables
-
evaluate
public boolean evaluate(Instance inst, boolean result)
Description copied from class:FlowByExpression.ExpressionNodeEvaluate this node and combine with the result so far- Specified by:
evaluatein classFlowByExpression.ExpressionNode- Parameters:
inst- the incoming instance to evalute withresult- the result to combine with- Returns:
- the result after combining with this node
-
addChild
public void addChild(FlowByExpression.ExpressionNode child)
Add a child to this bracket node- Parameters:
child- the ExpressionNode to add
-
removeChild
public void removeChild(FlowByExpression.ExpressionNode child)
Remove a child from this bracket node- Parameters:
child- the ExpressionNode to remove
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toJTree
public javax.swing.tree.DefaultMutableTreeNode toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
Description copied from class:FlowByExpression.ExpressionNodeGet a DefaultMutableTreeNode for this node- Specified by:
toJTreein classFlowByExpression.ExpressionNode- Parameters:
parent- the parent of this node (if any)- Returns:
- the DefaultMutableTreeNode for this node
-
toStringDisplay
public void toStringDisplay(java.lang.StringBuffer buff)
Description copied from class:FlowByExpression.ExpressionNodeGet the display representation of this node- Specified by:
toStringDisplayin classFlowByExpression.ExpressionNode- Parameters:
buff- the string buffer to append to
-
toStringInternal
public void toStringInternal(java.lang.StringBuffer buff)
Description copied from class:FlowByExpression.ExpressionNodeGet the internal representation of this node- Specified by:
toStringInternalin classFlowByExpression.ExpressionNode- Parameters:
buff- the string buffer to append to
-
parseFromInternal
public java.lang.String parseFromInternal(java.lang.String expression)
-
-