Package org.codehaus.groovy.groovydoc
Interface GroovyDoc
- All Superinterfaces:
Comparable<GroovyDoc>
- All Known Subinterfaces:
GroovyClassDoc,GroovyConstructorDoc,GroovyExecutableMemberDoc,GroovyFieldDoc,GroovyMemberDoc,GroovyMethodDoc,GroovyPackageDoc,GroovyProgramElementDoc,GroovyRootDoc
- All Known Implementing Classes:
ArrayClassDocWrapper,ExternalGroovyClassDoc,SimpleGroovyAbstractableElementDoc,SimpleGroovyClassDoc,SimpleGroovyConstructorDoc,SimpleGroovyDoc,SimpleGroovyExecutableMemberDoc,SimpleGroovyFieldDoc,SimpleGroovyMemberDoc,SimpleGroovyMethodDoc,SimpleGroovyPackageDoc,SimpleGroovyProgramElementDoc,SimpleGroovyRootDoc
Base contract for documented program elements exposed by Groovydoc.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the processed comment text for this element.Returns the first sentence of the processed comment text.Returns the raw documentation comment for this element.booleanIndicates whether this element represents an annotation type.booleanIndicates whether this element represents an annotation type member.booleanisClass()Indicates whether this element represents a class.booleanIndicates whether this element represents a constructor.booleanIndicates whether this element is marked as deprecated.booleanisEnum()Indicates whether this element represents an enum type.booleanIndicates whether this element represents an enum constant.booleanisError()Indicates whether this element represents an error type.booleanIndicates whether this element represents an exception type.booleanisField()Indicates whether this element represents a field.booleanIndicates whether this element is included in the generated output.booleanIndicates whether this element represents an interface.booleanisMethod()Indicates whether this element represents a method.booleanIndicates whether this element represents an ordinary class.booleanisRecord()Indicates whether this element represents a record type.name()Returns the simple name of this documented element.voidsetRawCommentText(String arg0) Replaces the raw documentation comment for this element.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
commentText
String commentText()Returns the processed comment text for this element.- Returns:
- the rendered comment text
-
getRawCommentText
String getRawCommentText()Returns the raw documentation comment for this element.- Returns:
- the raw comment text
-
isAnnotationType
boolean isAnnotationType()Indicates whether this element represents an annotation type.- Returns:
trueif this element is an annotation type
-
isAnnotationTypeElement
boolean isAnnotationTypeElement()Indicates whether this element represents an annotation type member.- Returns:
trueif this element is an annotation type element
-
isClass
boolean isClass()Indicates whether this element represents a class.- Returns:
trueif this element is a class
-
isConstructor
boolean isConstructor()Indicates whether this element represents a constructor.- Returns:
trueif this element is a constructor
-
isDeprecated
boolean isDeprecated()Indicates whether this element is marked as deprecated.- Returns:
trueif this element is deprecated
-
isEnum
boolean isEnum()Indicates whether this element represents an enum type.- Returns:
trueif this element is an enum
-
isRecord
boolean isRecord()Indicates whether this element represents a record type.- Returns:
trueif this element is a record
-
isEnumConstant
boolean isEnumConstant()Indicates whether this element represents an enum constant.- Returns:
trueif this element is an enum constant
-
isError
boolean isError()Indicates whether this element represents an error type.- Returns:
trueif this element is an error
-
isException
boolean isException()Indicates whether this element represents an exception type.- Returns:
trueif this element is an exception
-
isField
boolean isField()Indicates whether this element represents a field.- Returns:
trueif this element is a field
-
isIncluded
boolean isIncluded()Indicates whether this element is included in the generated output.- Returns:
trueif this element is included
-
isInterface
boolean isInterface()Indicates whether this element represents an interface.- Returns:
trueif this element is an interface
-
isMethod
boolean isMethod()Indicates whether this element represents a method.- Returns:
trueif this element is a method
-
isOrdinaryClass
boolean isOrdinaryClass()Indicates whether this element represents an ordinary class.- Returns:
trueif this element is an ordinary class
-
name
String name()Returns the simple name of this documented element.- Returns:
- the element name
-
setRawCommentText
Replaces the raw documentation comment for this element.- Parameters:
arg0- the raw comment text to store
-
firstSentenceCommentText
String firstSentenceCommentText()Returns the first sentence of the processed comment text.- Returns:
- the first sentence summary
-