Package weka.knowledgeflow.steps
Class FlowByExpression.ExpressionNode
java.lang.Object
weka.knowledgeflow.steps.FlowByExpression.ExpressionNode
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FlowByExpression.BracketNode,- FlowByExpression.ExpressionClause
- Enclosing class:
- FlowByExpression
Abstract base class for parts of a boolean expression.
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract booleanEvaluate this node and combine with the result so farvoidinit(Instances structure, Environment env) Initialize the nodebooleanGet whether this node is negated.booleanisOr()Get whether this node is to be OR'edvoidsetIsOr(boolean isOr) Set whether this node is to be OR'ed to the result so farvoidsetNegated(boolean negated) Set whether this node is negatedvoidsetShowAndOr(boolean show) Set whether to show the combination operator in the textual descriptionabstract DefaultMutableTreeNodetoJTree(DefaultMutableTreeNode parent) Get a DefaultMutableTreeNode for this nodeabstract voidtoStringDisplay(StringBuffer buff) Get the display representation of this nodeabstract voidtoStringInternal(StringBuffer buff) Get the internal representation of this node
- 
Constructor Details- 
ExpressionNodepublic ExpressionNode()
 
- 
- 
Method Details- 
setIsOrpublic void setIsOr(boolean isOr) Set whether this node is to be OR'ed to the result so far- Parameters:
- isOr- true if this node is to be OR'd
 
- 
isOrpublic boolean isOr()Get whether this node is to be OR'ed- Returns:
- true if this node is to be OR'ed with the result so far
 
- 
isNegatedpublic boolean isNegated()Get whether this node is negated.- Returns:
 
- 
setNegatedpublic void setNegated(boolean negated) Set whether this node is negated- Parameters:
- negated- true if this node is negated
 
- 
setShowAndOrpublic void setShowAndOr(boolean show) Set whether to show the combination operator in the textual description- Parameters:
- show- true if the combination operator is to be shown
 
- 
initInitialize the node- Parameters:
- structure- the structure of the incoming instances
- env- Environment variables
 
- 
evaluateEvaluate this node and combine with the result so far- Parameters:
- inst- the incoming instance to evalute with
- result- the result to combine with
- Returns:
- the result after combining with this node
 
- 
toStringInternalGet the internal representation of this node- Parameters:
- buff- the string buffer to append to
 
- 
toStringDisplayGet the display representation of this node- Parameters:
- buff- the string buffer to append to
 
- 
toJTreeGet a DefaultMutableTreeNode for this node- Parameters:
- parent- the parent of this node (if any)
- Returns:
- the DefaultMutableTreeNode for this node
 
 
-