public class Merge extends CfgNode
childNode, parentNode
Constructor and Description |
---|
Merge()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParent(CfgModelNode node)
Adds parent node.
|
CfgModelNode |
deepcopy()
Returns a copy of this node.
|
java.util.Collection<CfgModelNode> |
getChildren()
Return child nodes.
|
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getDefines()
Throws an exception.
|
CfgModelNode |
getOnlyChild()
Returns the only child node.
|
CfgModelNode |
getOnlyParent()
Returns the only parent node.
|
java.util.Collection<CfgModelNode> |
getParents()
Returns parent nodes.
|
CfgNodeType |
getType()
Returns node type.
|
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getUses()
Throws an exception.
|
boolean |
hasParents()
Checks rather node has parent nodes.
|
void |
removeParent(CfgModelNode node)
Removes parent node.
|
addChild, getDescription, hasChildren, removeChild
getId
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo, removeMetaInfo, removeMetaInfo
public CfgModelNode deepcopy()
CfgModelNode
deepcopy
in class CfgModelNode
public CfgNodeType getType()
CfgModelNode
CfgNodeType.NODE
type.getType
in class CfgModelNode
public boolean hasParents()
CfgModelNode
hasParents
in class CfgNode
true
if node has at least one parent, false
otherwise.public CfgModelNode getOnlyParent()
CfgModelNode
getOnlyParent
in class CfgModelNode
public void addParent(CfgModelNode node)
public void removeParent(CfgModelNode node)
removeParent
in class CfgNode
node
- parent nodejava.lang.NullPointerException
- when argument is null
.java.lang.IllegalStateException
- when the object does not contain
the specified parent node.java.lang.IllegalArgumentException
- when the specified node
is not of CfgNode
type.public java.util.Collection<CfgModelNode> getParents()
CfgModelNode
getParents
in class CfgNode
public CfgModelNode getOnlyChild()
CfgModelNode
getOnlyChild
in class CfgModelNode
public java.util.Collection<CfgModelNode> getChildren()
CfgModelNode
getChildren
in class CfgNode
public java.util.Set<ru.ispras.fortress.expression.NodeVariable> getUses()
CfgNode
public java.util.Set<ru.ispras.fortress.expression.NodeVariable> getDefines()
CfgNode
getDefines
in interface UseDef
getDefines
in class CfgNode
null