public class HlddConditionNode extends HlddNode
HlddNode.NodeType
Constructor and Description |
---|
HlddConditionNode()
Constructs a new condition node.
|
HlddConditionNode(HlddNode parent)
Constructs a new condition node.
|
HlddConditionNode(HlddNode parent,
ru.ispras.fortress.expression.Node expression)
Constructs a new condition node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(HlddNode child)
Adds the specified
HlddNode to the children nodes. |
void |
addChildren(java.util.Collection<HlddNode> children)
Adds the specified collection of
HlddNode to the children of the node. |
HlddNode |
deepCopy()
Makes a deep copy of the node.
|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<HlddNode> |
getChildren()
Returns the children nodes.
|
HlddEdge |
getDefaultEdge()
Returns the default child edge.
|
ru.ispras.fortress.expression.Node |
getExpression()
Returns the branch condition.
|
boolean |
hasDefaultEdge()
Shows whether the node has a default child edge.
|
int |
hashCode() |
boolean |
isNonTerminal()
Indicates whether the node is non-terminal.
|
void |
removeChild(HlddNode node)
Removes the specified
HlddNode from the children nodes. |
java.lang.String |
toString() |
getLevel, getParent, getType, isCondition, isEdge, isTerminal, setLevel, setParent
public HlddConditionNode(HlddNode parent, ru.ispras.fortress.expression.Node expression)
parent
- - the specified parent.expression
- - the specified branch condition.public HlddConditionNode(HlddNode parent)
parent
- - the specified parent.public HlddConditionNode()
public ru.ispras.fortress.expression.Node getExpression()
public HlddNode deepCopy()
HlddNode
public java.util.Collection<HlddNode> getChildren()
public void addChild(HlddNode child)
HlddNode
to the children nodes.child
- - the specified child node.public void addChildren(java.util.Collection<HlddNode> children)
HlddNode
to the children of the node.children
- - the specified collection of child nodes.public void removeChild(HlddNode node)
HlddNode
from the children nodes.node
- - the specified child node.public boolean isNonTerminal()
HlddNode
isNonTerminal
in class HlddNode
true
if the node is non-terminal, false
otherwise.public boolean hasDefaultEdge()
true
if the node has a default children edge, false
otherwise.public HlddEdge getDefaultEdge()