For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.tooling.model
/
HierarchicalElement
Hierarchical
Element
API
interface
HierarchicalElement
:
Element
(
source
)
Represents an element which belongs to some hierarchy.
Since
1.0
Inheritors
GradleProject
IdeaProject
IdeaModule
HierarchicalEclipseProject
Members
Functions
get
Children
Link copied to clipboard
API
abstract
fun
getChildren
(
)
:
DomainObjectSet
<
out
HierarchicalElement
>
Returns the child elements, or the empty set if there are no child elements.
get
Description
Link copied to clipboard
API
@
Nullable
abstract
fun
getDescription
(
)
:
@
Nullable
String
Returns the description of the element, or
null
if it has no description.
get
Name
Link copied to clipboard
API
abstract
fun
getName
(
)
:
String
Returns the name of the element.
get
Parent
Link copied to clipboard
API
@
Nullable
abstract
fun
getParent
(
)
:
@
Nullable
HierarchicalElement
Returns the parent of this element, or
null
if there is no parent.