Interface IHierarchyNode
-
- All Superinterfaces:
INavigatable
- All Known Implementing Classes:
DefaultHierarchyNode
public interface IHierarchyNode extends INavigatable
Represents a hierarchy node.- Since:
- 2.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.resource.IEObjectDescriptiongetElement()IHierarchyNodegetParent()java.util.Collection<IHierarchyNodeReference>getReferences()booleanisRecursive()booleanmayHaveChildren()-
Methods inherited from interface org.eclipse.xtext.ide.editor.navigation.INavigatable
getNavigationElement
-
-
-
-
Method Detail
-
getElement
org.eclipse.xtext.resource.IEObjectDescription getElement()
- Returns:
- an associated element that is used to build child nodes
-
getParent
IHierarchyNode getParent()
- Returns:
- a parent;
nullif the node is a root
-
getReferences
java.util.Collection<IHierarchyNodeReference> getReferences()
- Returns:
- references used to reach the node from a parent; empty if the node is a root
-
isRecursive
boolean isRecursive()
- Returns:
- whether there is a parent (can be transitive) containing the same element as the node
-
mayHaveChildren
boolean mayHaveChildren()
- Returns:
- whether the node may have children; e.g. a recursive node cannot have children
-
-