Modifier and Type | Method and Description |
---|---|
void |
addChild(CfgModelNode node)
Adds child node.
|
void |
addParent(CfgModelNode node)
Adds parent node.
|
CfgModelNode |
deepCopy()
Returns a copy of this node.
|
java.util.Collection<CfgModelNode> |
getChildren()
Return child nodes.
|
java.lang.String |
getDescription(ru.ispras.fortress.expression.printer.ExprTreePrinter printer)
Returns node string description in the format of the specified printer.
|
java.lang.String |
getId()
Returns unique node identifier in string form.
|
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.
|
boolean |
hasChildren()
Checks rather node has child nodes.
|
boolean |
hasOnlyChild()
Checks rather node has exactly one child node.
|
boolean |
hasOnlyParent()
Checks rather node has exactly one parent node.
|
boolean |
hasParents()
Checks rather node has parent nodes.
|
void |
removeChild(CfgModelNode node)
Removes child node.
|
void |
removeParent(CfgModelNode node)
Removes parent node.
|
CfgModelNode deepCopy()
The copy does not keep the same links to parent or child nodes as this has.
java.lang.String getId()
java.lang.String getDescription(ru.ispras.fortress.expression.printer.ExprTreePrinter printer)
printer
- printerCfgNodeType getType()
By default, node has CfgNodeType.UNKNOWN
type.
boolean hasParents()
true
if node has at least one parent, false
otherwise.boolean hasOnlyParent()
true
if node has exactly one parent at the moment, false
otherwise.boolean hasChildren()
true
if node has at least one child, false
otherwise.boolean hasOnlyChild()
true
if node has exactly one child at the moment, false
otherwise.CfgModelNode getOnlyParent()
java.util.Collection<CfgModelNode> getParents()
CfgModelNode getOnlyChild()
java.util.Collection<CfgModelNode> getChildren()
void addChild(CfgModelNode node)
node
- child nodevoid addParent(CfgModelNode node)
node
- parent nodevoid removeChild(CfgModelNode node)
node
- child nodevoid removeParent(CfgModelNode node)
node
- parent node