public class Sink extends CfgNode
childNode, parentNode
Constructor and Description |
---|
Sink()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(CfgModelNode node)
Throws an exception.
|
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.
|
CfgNodeType |
getType()
Returns node type.
|
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getUses()
Throws an exception.
|
boolean |
hasChildren()
Checks rather node has child nodes.
|
boolean |
hasParents()
Checks rather node has parent nodes.
|
void |
removeChild(CfgModelNode node)
Throws an exception.
|
addParent, getDescription, getParents, removeParent
getId
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo, removeMetaInfo, removeMetaInfo
public CfgModelNode deepcopy()
CfgModelNode
deepcopy
in class CfgModelNode
public boolean hasParents()
CfgModelNode
hasParents
in class CfgNode
true
if node has at least one parent, false
otherwise.public CfgModelNode getOnlyChild()
CfgModelNode
getOnlyChild
in class CfgModelNode
public void addChild(CfgModelNode node)
public void removeChild(CfgModelNode node)
removeChild
in class CfgNode
node
- child nodejava.lang.UnsupportedOperationException
- every time it is called.public java.util.Collection<CfgModelNode> getChildren()
CfgModelNode
getChildren
in class CfgNode
public CfgNodeType getType()
CfgModelNode
CfgNodeType.NODE
type.getType
in class CfgModelNode
public boolean hasChildren()
CfgModelNode
hasChildren
in class CfgNode
true
if node has at least one child,
false
otherwise.public CfgModelNode getOnlyParent()
CfgModelNode
getOnlyParent
in class CfgModelNode
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