| Modifiers | Name | Description |
|---|---|---|
static int |
ANNOTATION_DEF |
Token type used for annotation types. |
static int |
CLASS_DEF |
Token type used for ordinary classes. |
static int |
ENUM_DEF |
Token type used for enums. |
static int |
INTERFACE_DEF |
Token type used for interfaces. |
static int |
RECORD_DEF |
Token type used for records. |
static int |
TRAIT_DEF |
Token type used for traits. |
| Constructor and description |
|---|
SimpleGroovyDoc(String name)Creates a documented element with the supplied name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static String |
calculateFirstSentence(String raw)Extracts the first sentence from a raw documentation comment. |
|
public String |
commentText()* Returns the processed comment text for this element. * *
|
|
public int |
compareTo(GroovyDoc that)Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure signum The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
|
|
public String |
firstSentenceCommentText()* Returns the first sentence of the processed comment text. * *
|
|
public String |
getRawCommentText()* Returns the raw documentation comment for this element. * *
|
|
public String |
getTypeDescription()Returns a human-readable description of this element's kind. |
|
public String |
getTypeSourceDescription()Returns the source-level keyword used to declare this element. |
|
public boolean |
isAnnotationType()* Indicates whether this element represents an annotation type. * *
|
|
public boolean |
isAnnotationTypeElement()* Indicates whether this element represents an annotation type member. * *
|
|
public boolean |
isClass()* Indicates whether this element represents a class. * *
|
|
public boolean |
isConstructor()* Indicates whether this element represents a constructor. * *
|
|
public boolean |
isDeprecated()* Indicates whether this element is marked as deprecated. * *
|
|
public boolean |
isEnum()* Indicates whether this element represents an enum type. * *
|
|
public boolean |
isEnumConstant()* Indicates whether this element represents an enum constant. * *
|
|
public boolean |
isError()* Indicates whether this element represents an error type. * *
|
|
public boolean |
isException()* Indicates whether this element represents an exception type. * *
|
|
public boolean |
isField()* Indicates whether this element represents a field. * *
|
|
public boolean |
isHidden()Indicates whether this doc element should be retained for internal model lookups but excluded from rendered output. |
|
public boolean |
isIncluded()* Indicates whether this element is included in the generated output. * *
|
|
public boolean |
isInterface()* Indicates whether this element represents an interface. * *
|
|
public boolean |
isMarkdown()Indicates whether this documentation comment should be rendered as Markdown. |
|
public boolean |
isMethod()* Indicates whether this element represents a method. * *
|
|
public boolean |
isOrdinaryClass()* Indicates whether this element represents an ordinary class. * *
|
|
public boolean |
isRecord()* Indicates whether this element represents a record type. * *
|
|
public boolean |
isScript()Indicates whether this documented element represents a Groovy script. |
|
public boolean |
isTrait()Indicates whether this documented element represents a trait. |
|
public String |
name()* Returns the simple name of this documented element. * *
|
|
protected void |
setCommentText(String commentText)Stores the rendered comment text for this element. |
|
public void |
setDeprecated(boolean deprecated)Marks this documented element as deprecated or not deprecated. |
|
protected void |
setFirstSentenceCommentText(String firstSentenceCommentText)Stores the first-sentence summary for this element. |
|
public void |
setHidden(boolean hidden)Sets whether this doc element should be hidden from rendered output while remaining available for internal resolution such as inheritDoc. |
|
public void |
setMarkdown(boolean markdown)Sets whether this documentation comment should be rendered as Markdown. |
|
public void |
setRawCommentText(String rawCommentText)* Replaces the raw documentation comment for this element. * *
|
|
public void |
setScript(boolean script)Marks this documented element as a script or ordinary class. |
|
public void |
setTokenType(int t)Sets the parsed token type for this element. |
|
public GroovyTag[] |
tags()Returns the block tags parsed from the raw comment text. |
|
public String |
toString()Returns a debug-friendly representation of this documented element. |
|
public int |
tokenType()Returns the parsed token type for this element. |
Token type used for annotation types.
Token type used for ordinary classes.
Token type used for enums.
Token type used for interfaces.
Token type used for records.
Token type used for traits.
Creates a documented element with the supplied name.
name - the element nameExtracts the first sentence from a raw documentation comment.
raw - the raw documentation comment* Returns the processed comment text for this element. * *
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for
all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)
The implementor must also ensure that the relation is transitive:
(x.compareTo(y) > 0 && y.compareTo(z) > 0) implies
x.compareTo(z) > 0.
Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z))
== signum(y.compareTo(z)), for all z.
(x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any
class that implements the Comparable interface and violates
this condition should clearly indicate this fact. The recommended
language is "Note: this class has a natural ordering that is
inconsistent with equals."o - the object to be compared.* Returns the first sentence of the processed comment text. * *
* Returns the raw documentation comment for this element. * *
Returns a human-readable description of this element's kind.
Returns the source-level keyword used to declare this element.
* Indicates whether this element represents an annotation type. * *
true if this element is an annotation type* Indicates whether this element represents an annotation type member. * *
true if this element is an annotation type element* Indicates whether this element represents a class. * *
true if this element is a class* Indicates whether this element represents a constructor. * *
true if this element is a constructor* Indicates whether this element is marked as deprecated. * *
true if this element is deprecated* Indicates whether this element represents an enum type. * *
true if this element is an enum* Indicates whether this element represents an enum constant. * *
true if this element is an enum constant* Indicates whether this element represents an error type. * *
true if this element is an error* Indicates whether this element represents an exception type. * *
true if this element is an exception* Indicates whether this element represents a field. * *
true if this element is a fieldIndicates whether this doc element should be retained for internal model lookups but excluded from rendered output.
true if this element is hidden from published docs* Indicates whether this element is included in the generated output. * *
true if this element is included* Indicates whether this element represents an interface. * *
true if this element is an interfaceIndicates whether this documentation comment should be rendered as Markdown.
true if Markdown rendering is enabled* Indicates whether this element represents a method. * *
true if this element is a method* Indicates whether this element represents an ordinary class. * *
true if this element is an ordinary class* Indicates whether this element represents a record type. * *
true if this element is a recordIndicates whether this documented element represents a Groovy script.
true if this element is a scriptIndicates whether this documented element represents a trait.
true if this element is a trait* Returns the simple name of this documented element. * *
Stores the rendered comment text for this element.
commentText - the rendered comment textMarks this documented element as deprecated or not deprecated.
deprecated - true if the element is deprecatedStores the first-sentence summary for this element.
firstSentenceCommentText - the summary text Sets whether this doc element should be hidden from rendered output while
remaining available for internal resolution such as inheritDoc.
hidden - true if this element should be hiddenSets whether this documentation comment should be rendered as Markdown.
markdown - true to enable Markdown rendering* Replaces the raw documentation comment for this element. * *
arg0 - the raw comment text to storeMarks this documented element as a script or ordinary class.
script - true if this element represents a scriptSets the parsed token type for this element.
t - the token typeReturns the block tags parsed from the raw comment text.
null if tags have not been calculatedReturns a debug-friendly representation of this documented element.
Returns the parsed token type for this element.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.