protected static class ParserBuilder.ParseNodeOperator<U extends Event> extends Operator<U>
Operator.Value| Modifier and Type | Field and Description |
|---|---|
ca.uqac.lif.bullwinkle.ParseNode |
m_node
The parse node this operator carries
|
| Constructor and Description |
|---|
ParseNodeOperator(ca.uqac.lif.bullwinkle.ParseNode node) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptPostfix(HologramVisitor<U> visitor,
boolean in_tree)
Accepts a hologram visitor into the evaluation tree for this
operator
|
void |
acceptPrefix(HologramVisitor<U> visitor,
boolean in_tree)
Accepts a hologram visitor into the evaluation tree for this
operator
|
void |
addOperand(Operator<U> op)
Adds an operand to this operator
|
void |
clean()
Cleans the deleted nodes of the evaluation tree
|
Operator<U> |
copy(boolean with_tree)
Creates a deep copy of this operator
|
void |
delete()
Marks a node as deleted
|
void |
evaluate(U event)
Evaluates the operator on the new event
|
java.lang.String |
getRootSymbol()
Gets the symbol of the operator for the root of the evaluation tree
|
java.util.List<Operator<U>> |
getTreeChildren()
Gets the ordered list of the children in the evaluation tree for this
operator
|
int |
size(boolean with_tree)
Gets the size of this formula
|
java.lang.String |
toString() |
acceptPostfix, acceptPrefix, clear, copy, copyInto, evaluate, getValue, isDeleted, sizepublic ca.uqac.lif.bullwinkle.ParseNode m_node
public ParseNodeOperator(ca.uqac.lif.bullwinkle.ParseNode node)
public Operator<U> copy(boolean with_tree)
Operatorpublic void evaluate(U event)
Operatorpublic void delete()
Operatorpublic int size(boolean with_tree)
Operatorpublic java.lang.String getRootSymbol()
OperatorgetRootSymbol in class Operator<U extends Event>public void acceptPrefix(HologramVisitor<U> visitor, boolean in_tree)
OperatoracceptPrefix in class Operator<U extends Event>visitor - The visitorin_tree - Whether to visit the evaluation tree (true) or
the formula (false)public void acceptPostfix(HologramVisitor<U> visitor, boolean in_tree)
OperatoracceptPostfix in class Operator<U extends Event>visitor - The visitorin_tree - Whether to visit the evaluation tree (true) or
the formula (false)public java.util.List<Operator<U>> getTreeChildren()
OperatorgetTreeChildren in class Operator<U extends Event>public void addOperand(Operator<U> op)
OperatoraddOperand in class Operator<U extends Event>op - The operandpublic void clean()
Operatorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © Sylvain HallĂ©. All Rights Reserved.