api / org.gradle.tooling.model / HierarchicalElement

HierarchicalElement

interface HierarchicalElement : Element

Represents an element which belongs to some hierarchy.

Since
1.0-milestone-5

Functions

getChildren

abstract fun getChildren(): DomainObjectSet<out HierarchicalElement>

Returns the child elements, or the empty set if there are no child elements.

getParent

abstract fun getParent(): HierarchicalElement

Returns the parent of this element, or null if there is no parent.

Inherited Functions

getDescription

abstract fun getDescription(): String

Returns the description of the element, or null if it has no description.

getName

abstract fun getName(): String

Returns the name of the element. Note that the name is not a unique identifier.

Inheritors

GradleProject

interface GradleProject : HierarchicalElement, BuildableElement, ProjectModel

Represents a Gradle project.

HierarchicalEclipseProject

interface HierarchicalEclipseProject : HierarchicalElement, HasGradleProject

Represents the basic information about an Eclipse project.

IdeaModule

interface IdeaModule : HierarchicalElement, HasGradleProject

Represents information about the IDEA module.

IdeaProject

interface IdeaProject : HierarchicalElement

Represents the information about the IDEA project.