public abstract static class FlowByExpression.ExpressionNode
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Environment |
m_env
Environment variables
|
protected boolean |
m_isAnOr
boolean operator for combining with result so far
|
protected boolean |
m_isNegated
is this node negated?
|
protected boolean |
m_showAndOr
Whether to show the combination operator in the textual representation
|
| Constructor and Description |
|---|
ExpressionNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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
|
boolean |
isNegated()
Get whether this node is negated.
|
boolean |
isOr()
Get whether this node is to be OR'ed
|
protected abstract java.lang.String |
parseFromInternal(java.lang.String expression)
Parse and initialize from the internal representation
|
void |
setIsOr(boolean isOr)
Set whether this node is to be OR'ed to the result so far
|
void |
setNegated(boolean negated)
Set whether this node is negated
|
void |
setShowAndOr(boolean show)
Set whether to show the combination operator in the textual description
|
abstract javax.swing.tree.DefaultMutableTreeNode |
toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
Get a DefaultMutableTreeNode for this node
|
abstract void |
toStringDisplay(java.lang.StringBuffer buff)
Get the display representation of this node
|
abstract void |
toStringInternal(java.lang.StringBuffer buff)
Get the internal representation of this node
|
protected boolean m_isAnOr
protected boolean m_isNegated
protected transient Environment m_env
protected boolean m_showAndOr
public void setIsOr(boolean isOr)
isOr - true if this node is to be OR'dpublic boolean isOr()
public boolean isNegated()
public void setNegated(boolean negated)
negated - true if this node is negatedpublic void setShowAndOr(boolean show)
show - true if the combination operator is to be shownpublic void init(Instances structure, Environment env)
structure - the structure of the incoming instancesenv - Environment variablespublic abstract boolean evaluate(Instance inst, boolean result)
inst - the incoming instance to evalute withresult - the result to combine withpublic abstract void toStringInternal(java.lang.StringBuffer buff)
buff - the string buffer to append topublic abstract void toStringDisplay(java.lang.StringBuffer buff)
buff - the string buffer to append toprotected abstract java.lang.String parseFromInternal(java.lang.String expression)
expression - the expression to parse in internal representationpublic abstract javax.swing.tree.DefaultMutableTreeNode toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
parent - the parent of this node (if any)