public abstract class NdTreeNode extends NdNode
NdTreeNode elements form a tree of nodes rooted at a NdResourceFile. Each node contains a list of
children which it declares and has a pointer to the most specific node which declares it.| Modifier and Type | Field and Description |
|---|---|
static FieldOneToMany<NdTreeNode> |
CHILDREN |
static FieldManyToOne<NdTreeNode> |
PARENT |
static StructDef<NdTreeNode> |
type |
| Modifier | Constructor and Description |
|---|---|
|
NdTreeNode(Nd nd,
long address) |
protected |
NdTreeNode(Nd nd,
NdTreeNode parent) |
| Modifier and Type | Method and Description |
|---|---|
<T extends NdTreeNode> |
getAncestorOfType(java.lang.Class<T> ancestorType)
Returns the closest ancestor of the given type, or null if none.
|
NdTreeNode |
getChild(int index) |
int |
getChildrenCount() |
NdBinding |
getParentBinding() |
public static final FieldManyToOne<NdTreeNode> PARENT
public static final FieldOneToMany<NdTreeNode> CHILDREN
public static final StructDef<NdTreeNode> type
public NdTreeNode(Nd nd, long address)
protected NdTreeNode(Nd nd, NdTreeNode parent)
public int getChildrenCount()
public NdTreeNode getChild(int index)
public <T extends NdTreeNode> T getAncestorOfType(java.lang.Class<T> ancestorType)
public NdBinding getParentBinding() throws IndexException
IndexException