
T - The type of the model object of the node.public static class InheritanceModel.Node<T> extends Object
| Constructor and Description |
|---|
InheritanceModel.Node(Implementation implementation,
Specification specification,
Implementation classDeclaration,
InheritanceModel.Node<Implementation> descendant,
T modelObject,
boolean finalNode,
boolean overrideNode)
Creates a new
Node instance. |
| Modifier and Type | Method and Description |
|---|---|
Implementation |
getClassDeclaration()
Gets the class declaration the node originates from.
|
InheritanceModel.Node<Implementation> |
getDescendant()
Gets the direct descendant node of the node.
|
Implementation |
getImplementation()
Gets the implementation the node originates from.
|
T |
getModelObject()
Gets the model object of the node.
|
Set<InheritanceModel.Node<T>> |
getOverriddenNodes()
Gets a set of nodes overridden by the node.
|
List<InheritanceModel.Node<Implementation>> |
getPath()
Gets the path to the node.
|
Specification |
getSpecification()
Gets the specification the node originates from.
|
boolean |
isFinal()
Gets a flag indicating the node is the final node in an inheritance hierarchy.
|
boolean |
isOverride()
Gets a flag indicating the node is intended to override an ancestor node.
|
public InheritanceModel.Node(Implementation implementation, Specification specification, Implementation classDeclaration, InheritanceModel.Node<Implementation> descendant, T modelObject, boolean finalNode, boolean overrideNode)
Node instance.implementation - The implementation the node originates from.specification - The specification the node originates from or null.classDeclaration - The class declaration the node originates from or null.descendant - The direct descendant node of the node or null.modelObject - The model object of the node.finalNode - true, if the node is the final node in an inheritance hierarchy; false,
else.overrideNode - true, if the node is intended to override an ancestor node; false, else.public final Implementation getImplementation()
public final Specification getSpecification()
null, if the node does not originate from a
specification.public final Implementation getClassDeclaration()
null, if the node does not originate from a
class declaration.public final InheritanceModel.Node<Implementation> getDescendant()
null.InheritanceModel.getSourceNodes(java.lang.String)public final T getModelObject()
public final boolean isFinal()
true, if the node is the final node in an inheritance hierarchy; false, else.public final boolean isOverride()
true, if the node is intended to override an ancestor; false else.public final Set<InheritanceModel.Node<T>> getOverriddenNodes()
public final List<InheritanceModel.Node<Implementation>> getPath()
Copyright © 2005–2016 The JOMC Project. All rights reserved.