Package org.codehaus.groovy.groovydoc
Interface GroovyProgramElementDoc
- All Superinterfaces:
Comparable<GroovyDoc>,GroovyDoc
- All Known Subinterfaces:
GroovyClassDoc,GroovyConstructorDoc,GroovyExecutableMemberDoc,GroovyFieldDoc,GroovyMemberDoc,GroovyMethodDoc
- All Known Implementing Classes:
ArrayClassDocWrapper,ExternalGroovyClassDoc,SimpleGroovyAbstractableElementDoc,SimpleGroovyClassDoc,SimpleGroovyConstructorDoc,SimpleGroovyExecutableMemberDoc,SimpleGroovyFieldDoc,SimpleGroovyMemberDoc,SimpleGroovyMethodDoc,SimpleGroovyProgramElementDoc
Describes a documented program element that can appear within a package or type.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the annotations declared on this element.Returns the containing class for this element.Returns the package that contains this element.booleanisFinal()Indicates whether this element is declaredfinal.booleanIndicates whether this element has package-private visibility.booleanIndicates whether this element is declaredprivate.booleanIndicates whether this element is declaredprotected.booleanisPublic()Indicates whether this element is declaredpublic.booleanisStatic()Indicates whether this element is declaredstatic.Returns the rendered modifier text for this element.intReturns the modifier flags for this element.Returns the fully qualified name of this element.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyDoc
commentText, firstSentenceCommentText, getRawCommentText, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, isRecord, name, setRawCommentText
-
Method Details
-
annotations
GroovyAnnotationRef[] annotations()Returns the annotations declared on this element.- Returns:
- the declared annotations
-
containingClass
GroovyClassDoc containingClass()Returns the containing class for this element.- Returns:
- the containing class, or
nullif this element is not nested within a class
-
containingPackage
GroovyPackageDoc containingPackage()Returns the package that contains this element.- Returns:
- the containing package, or
nullif none is available
-
isFinal
boolean isFinal()Indicates whether this element is declaredfinal.- Returns:
trueif this element is final
-
isPackagePrivate
boolean isPackagePrivate()Indicates whether this element has package-private visibility.- Returns:
trueif this element is package-private
-
isPrivate
boolean isPrivate()Indicates whether this element is declaredprivate.- Returns:
trueif this element is private
-
isProtected
boolean isProtected()Indicates whether this element is declaredprotected.- Returns:
trueif this element is protected
-
isPublic
boolean isPublic()Indicates whether this element is declaredpublic.- Returns:
trueif this element is public
-
isStatic
boolean isStatic()Indicates whether this element is declaredstatic.- Returns:
trueif this element is static
-
modifiers
String modifiers()Returns the rendered modifier text for this element.- Returns:
- the modifier text
-
modifierSpecifier
int modifierSpecifier()Returns the modifier flags for this element.- Returns:
- the modifier bit set
-
qualifiedName
String qualifiedName()Returns the fully qualified name of this element.- Returns:
- the qualified name
-