public interface DocumentationElement extends java.lang.Comparable<DocumentationElement>
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(DocumentationElement other) |
java.lang.String |
documentation()
The documentation comment for the element.
|
default java.lang.String |
fullName()
The fully qualified named of the element.
|
default boolean |
hasDocumentation()
Chech if this element has a documentation.
|
default java.lang.String |
id()
A unique identifier for the element.
|
default java.lang.String |
label()
A readable representation of the element.
|
int |
line()
The line where the element is defined.
|
java.lang.String |
name()
The simple name of the element.
|
DocumentationElement |
parent()
The parent element.
|
java.lang.String |
type()
A readable name for the kind of element.
|
java.lang.String name()
java.lang.String documentation()
default boolean hasDocumentation()
An element has a documentation if its documentation()
method returns a non null non empty (when trimmed)
string.
int line()
DocumentationElement parent()
For toplevel element, this is the module. For functions, it can be the augmentation. For union values, it is the union.
java.lang.String type()
default java.lang.String fullName()
Typically, the parent full name and the element name.
default java.lang.String id()
Can be used in html ID for instance.
default java.lang.String label()
Typically the name, but can also contains argument names for functions for instance.
default int compareTo(DocumentationElement other)
compareTo
in interface java.lang.Comparable<DocumentationElement>