public abstract class CfgModelNode extends MetaInfo implements UseDef
Constructor and Description |
---|
CfgModelNode() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addChild(CfgModelNode node)
Adds child node.
|
abstract void |
addParent(CfgModelNode node)
Adds parent node.
|
abstract CfgModelNode |
deepcopy()
Returns a copy of this node.
|
abstract java.util.Collection<CfgModelNode> |
getChildren()
Return child nodes.
|
abstract 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.
|
abstract CfgModelNode |
getOnlyChild()
Returns the only child node.
|
abstract CfgModelNode |
getOnlyParent()
Returns the only parent node.
|
abstract java.util.Collection<CfgModelNode> |
getParents()
Returns parent nodes.
|
CfgNodeType |
getType()
Returns node type.
|
abstract boolean |
hasChildren()
Checks rather node has child nodes.
|
abstract boolean |
hasParents()
Checks rather node has parent nodes.
|
abstract void |
removeChild(CfgModelNode node)
Removes child node.
|
abstract void |
removeParent(CfgModelNode node)
Removes parent node.
|
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo, removeMetaInfo, removeMetaInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefines, getUses
public abstract CfgModelNode deepcopy()
public java.lang.String getId()
public abstract java.lang.String getDescription(ru.ispras.fortress.expression.printer.ExprTreePrinter printer)
printer
- printerpublic CfgNodeType getType()
CfgNodeType.NODE
type.public abstract boolean hasParents()
true
if node has at least one parent, false
otherwise.public abstract boolean hasChildren()
true
if node has at least one child,
false
otherwise.public abstract CfgModelNode getOnlyParent()
public abstract java.util.Collection<CfgModelNode> getParents()
public abstract CfgModelNode getOnlyChild()
public abstract java.util.Collection<CfgModelNode> getChildren()
public abstract void addChild(CfgModelNode node)
node
- child nodepublic abstract void addParent(CfgModelNode node)
node
- parent nodepublic abstract void removeChild(CfgModelNode node)
node
- child nodepublic abstract void removeParent(CfgModelNode node)
node
- parent node