| 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){@inheritDoc} |
|
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 commentReturns the processed comment text for this element.
{@inheritDoc}
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 typeIndicates whether this element represents an annotation type member.
true if this element is an annotation type elementIndicates whether this element represents a class.
true if this element is a classIndicates whether this element represents a constructor.
true if this element is a constructorIndicates whether this element is marked as deprecated.
true if this element is deprecatedIndicates whether this element represents an enum type.
true if this element is an enumIndicates whether this element represents an enum constant.
true if this element is an enum constantIndicates whether this element represents an error type.
true if this element is an errorIndicates whether this element represents an exception type.
true if this element is an exceptionIndicates 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 docsIndicates whether this element is included in the generated output.
true if this element is includedIndicates 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 enabledIndicates whether this element represents a method.
true if this element is a methodIndicates whether this element represents an ordinary class.
true if this element is an ordinary classIndicates 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 traitReturns 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 renderingReplaces 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.