public class Source extends CfgNode
childNode, parentNode
Constructor and Description |
---|
Source()
Constructs empty object.
|
Source(CfgModelNode parent)
Constructs object with the specified parent node.
|
Modifier and Type | Method and Description |
---|---|
void |
addParent(CfgModelNode node)
Throws exception.
|
CfgModelNode |
deepcopy()
Returns a copy of this node.
|
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, getChildren, getDescription, hasChildren, removeChild
getId
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo, removeMetaInfo, removeMetaInfo
public Source()
public Source(CfgModelNode parent)
parent
- parent nodejava.lang.NullPointerException
- when argument is null
.public CfgModelNode deepcopy()
CfgModelNode
deepcopy
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 internal parent node
is not equal to the specified node.public java.util.Collection<CfgModelNode> getParents()
CfgModelNode
getParents
in class CfgNode
public CfgModelNode getOnlyChild()
CfgModelNode
getOnlyChild
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 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