Class ArrayClassDocWrapper
java.lang.Object
org.codehaus.groovy.tools.groovydoc.ArrayClassDocWrapper
- All Implemented Interfaces:
Comparable<GroovyDoc>,GroovyClassDoc,GroovyDoc,GroovyProgramElementDoc,GroovyType
A
GroovyClassDoc decorator that wraps a component-type class doc for array-type
representations. All GroovyClassDoc method calls are delegated to the wrapped instance.-
Constructor Summary
ConstructorsConstructorDescriptionArrayClassDocWrapper(GroovyClassDoc delegate) Creates a wrapper for the given component-type class doc. -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotations declared on this element.Returns the processed comment text for this element.intReturns the constructors declared by this type.constructors(boolean filter) Returns the constructors declared by this type, optionally applying the active visibility filter.Returns the containing class for this element.Returns the package that contains this element.booleanIndicates whether this type explicitly defines serializable fields metadata.Returns the enum constants declared by this type.booleanfields()Returns the fields declared by this type.fields(boolean filter) Returns the fields declared by this type, optionally applying the active visibility filter.Resolves a referenced class name from the context of this type.Returns the first sentence of the processed comment text.Returns the wrapped component-type class doc.Returns the documentation output path for this type.Returns the raw documentation comment for this element.Returns the relative path from this type to the documentation root.inthashCode()Returns the explicitly imported classes visible to this type.Returns the imported packages visible to this type.Returns the nested classes declared by this type.innerClasses(boolean filter) Returns the nested classes declared by this type, optionally applying the active visibility filter.Returns the interfaces directly implemented or extended by this type.Returns the interface types directly implemented or extended by this type.booleanIndicates whether this type is declared abstract.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.booleanIndicates whether this type implementsExternalizable.booleanisField()Indicates whether this element represents a field.booleanisFinal()Indicates whether this element is declaredfinal.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.booleanIndicates whether this element has package-private visibility.booleanIndicates whether this type is a Java primitive type.booleanIndicates whether this element is declaredprivate.booleanIndicates whether this element is declaredprotected.booleanisPublic()Indicates whether this element is declaredpublic.booleanisRecord()Indicates whether this element represents a record type.booleanIndicates whether this type implementsSerializable.booleanisStatic()Indicates whether this element is declaredstatic.methods()Returns the methods declared by this type.methods(boolean filter) Returns the methods declared by this type, optionally applying the active visibility filter.Returns the rendered modifier text for this element.intReturns the modifier flags for this element.name()Returns the simple name of this documented element.Returns the Groovy properties declared by this type.Returns the fully qualified name of this element.The qualified name of this type excluding any dimension information.Returns the fields that participate in serialization.Returns the methods related to custom serialization.voidsetRawCommentText(String arg0) Replaces the raw documentation comment for this element.The unqualified name of this type excluding any dimension or nesting information.booleansubclassOf(GroovyClassDoc gcd) Determines whether this type is a subclass of the supplied candidate.Returns the direct superclass of this type.Returns the direct superclass as a type reference.toString()The qualified name including any dimension information.typeName()The unqualified name of this type excluding any dimension information.
-
Constructor Details
-
ArrayClassDocWrapper
Creates a wrapper for the given component-type class doc.- Parameters:
delegate- the non-array class doc to wrap
-
-
Method Details
-
getDelegate
Returns the wrapped component-type class doc. -
constructors
Returns the constructors declared by this type.- Specified by:
constructorsin interfaceGroovyClassDoc- Returns:
- the declared constructors
-
constructors
Returns the constructors declared by this type, optionally applying the active visibility filter.- Specified by:
constructorsin interfaceGroovyClassDoc- Parameters:
filter-trueto include only visible constructors,falseto include all constructors- Returns:
- the matching constructors
-
definesSerializableFields
public boolean definesSerializableFields()Indicates whether this type explicitly defines serializable fields metadata.- Specified by:
definesSerializableFieldsin interfaceGroovyClassDoc- Returns:
trueif serializable fields are defined explicitly
-
enumConstants
Returns the enum constants declared by this type.- Specified by:
enumConstantsin interfaceGroovyClassDoc- Returns:
- the declared enum constants
-
fields
Returns the fields declared by this type.- Specified by:
fieldsin interfaceGroovyClassDoc- Returns:
- the declared fields
-
properties
Returns the Groovy properties declared by this type.- Specified by:
propertiesin interfaceGroovyClassDoc- Returns:
- the declared properties
-
fields
Returns the fields declared by this type, optionally applying the active visibility filter.- Specified by:
fieldsin interfaceGroovyClassDoc- Parameters:
filter-trueto include only visible fields,falseto include all fields- Returns:
- the matching fields
-
findClass
Resolves a referenced class name from the context of this type.- Specified by:
findClassin interfaceGroovyClassDoc- Parameters:
className- the class name to resolve- Returns:
- the matching class documentation, or
nullif it cannot be resolved
-
importedClasses
Returns the explicitly imported classes visible to this type.- Specified by:
importedClassesin interfaceGroovyClassDoc- Returns:
- the imported classes
-
importedPackages
Returns the imported packages visible to this type.- Specified by:
importedPackagesin interfaceGroovyClassDoc- Returns:
- the imported packages
-
innerClasses
Returns the nested classes declared by this type.- Specified by:
innerClassesin interfaceGroovyClassDoc- Returns:
- the nested classes
-
innerClasses
Returns the nested classes declared by this type, optionally applying the active visibility filter.- Specified by:
innerClassesin interfaceGroovyClassDoc- Parameters:
filter-trueto include only visible nested classes,falseto include all nested classes- Returns:
- the matching nested classes
-
interfaces
Returns the interfaces directly implemented or extended by this type.- Specified by:
interfacesin interfaceGroovyClassDoc- Returns:
- the direct interfaces
-
interfaceTypes
Returns the interface types directly implemented or extended by this type.- Specified by:
interfaceTypesin interfaceGroovyClassDoc- Returns:
- the direct interface types
-
isAbstract
public boolean isAbstract()Indicates whether this type is declared abstract.- Specified by:
isAbstractin interfaceGroovyClassDoc- Returns:
trueif this type is abstract
-
isExternalizable
public boolean isExternalizable()Indicates whether this type implementsExternalizable.- Specified by:
isExternalizablein interfaceGroovyClassDoc- Returns:
trueif this type is externalizable
-
isSerializable
public boolean isSerializable()Indicates whether this type implementsSerializable.- Specified by:
isSerializablein interfaceGroovyClassDoc- Returns:
trueif this type is serializable
-
methods
Returns the methods declared by this type.- Specified by:
methodsin interfaceGroovyClassDoc- Returns:
- the declared methods
-
methods
Returns the methods declared by this type, optionally applying the active visibility filter.- Specified by:
methodsin interfaceGroovyClassDoc- Parameters:
filter-trueto include only visible methods,falseto include all methods- Returns:
- the matching methods
-
serializableFields
Returns the fields that participate in serialization.- Specified by:
serializableFieldsin interfaceGroovyClassDoc- Returns:
- the serializable fields
-
serializationMethods
Returns the methods related to custom serialization.- Specified by:
serializationMethodsin interfaceGroovyClassDoc- Returns:
- the serialization methods
-
subclassOf
Determines whether this type is a subclass of the supplied candidate.- Specified by:
subclassOfin interfaceGroovyClassDoc- Parameters:
gcd- the candidate superclass- Returns:
trueif this type is a subclass ofgcd
-
superclass
Returns the direct superclass of this type.- Specified by:
superclassin interfaceGroovyClassDoc- Returns:
- the direct superclass, or
nullif none exists
-
superclassType
Returns the direct superclass as a type reference.- Specified by:
superclassTypein interfaceGroovyClassDoc- Returns:
- the direct superclass type, or
nullif none exists
-
getFullPathName
Returns the documentation output path for this type.- Specified by:
getFullPathNamein interfaceGroovyClassDoc- Returns:
- the full path used when rendering this type
-
getRelativeRootPath
Returns the relative path from this type to the documentation root.- Specified by:
getRelativeRootPathin interfaceGroovyClassDoc- Returns:
- the relative path to the documentation root
-
isPrimitive
public boolean isPrimitive()Indicates whether this type is a Java primitive type.- Specified by:
isPrimitivein interfaceGroovyType- Returns:
trueif this type is primitive
-
qualifiedTypeName
The qualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "java.lang.String".- Specified by:
qualifiedTypeNamein interfaceGroovyType
-
simpleTypeName
The unqualified name of this type excluding any dimension or nesting information. For example, the classOuter.Innerreturns "Inner".- Specified by:
simpleTypeNamein interfaceGroovyType
-
typeName
The unqualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "String".- Specified by:
typeNamein interfaceGroovyType
-
toString
The qualified name including any dimension information. For example, a two-dimensional array of String returns "java.lang.String[][]", and the parameterized typeList<Integer>returns "java.util.List<java.lang.Integer>".- Specified by:
toStringin interfaceGroovyType- Overrides:
toStringin classObject
-
annotations
Returns the annotations declared on this element.- Specified by:
annotationsin interfaceGroovyProgramElementDoc- Returns:
- the declared annotations
-
containingClass
Returns the containing class for this element.- Specified by:
containingClassin interfaceGroovyProgramElementDoc- Returns:
- the containing class, or
nullif this element is not nested within a class
-
containingPackage
Returns the package that contains this element.- Specified by:
containingPackagein interfaceGroovyProgramElementDoc- Returns:
- the containing package, or
nullif none is available
-
isFinal
public boolean isFinal()Indicates whether this element is declaredfinal.- Specified by:
isFinalin interfaceGroovyProgramElementDoc- Returns:
trueif this element is final
-
isPackagePrivate
public boolean isPackagePrivate()Indicates whether this element has package-private visibility.- Specified by:
isPackagePrivatein interfaceGroovyProgramElementDoc- Returns:
trueif this element is package-private
-
isPrivate
public boolean isPrivate()Indicates whether this element is declaredprivate.- Specified by:
isPrivatein interfaceGroovyProgramElementDoc- Returns:
trueif this element is private
-
isProtected
public boolean isProtected()Indicates whether this element is declaredprotected.- Specified by:
isProtectedin interfaceGroovyProgramElementDoc- Returns:
trueif this element is protected
-
isPublic
public boolean isPublic()Indicates whether this element is declaredpublic.- Specified by:
isPublicin interfaceGroovyProgramElementDoc- Returns:
trueif this element is public
-
isStatic
public boolean isStatic()Indicates whether this element is declaredstatic.- Specified by:
isStaticin interfaceGroovyProgramElementDoc- Returns:
trueif this element is static
-
modifiers
Returns the rendered modifier text for this element.- Specified by:
modifiersin interfaceGroovyProgramElementDoc- Returns:
- the modifier text
-
modifierSpecifier
public int modifierSpecifier()Returns the modifier flags for this element.- Specified by:
modifierSpecifierin interfaceGroovyProgramElementDoc- Returns:
- the modifier bit set
-
qualifiedName
Returns the fully qualified name of this element.- Specified by:
qualifiedNamein interfaceGroovyProgramElementDoc- Returns:
- the qualified name
-
commentText
Returns the processed comment text for this element.- Specified by:
commentTextin interfaceGroovyDoc- Returns:
- the rendered comment text
-
getRawCommentText
Returns the raw documentation comment for this element.- Specified by:
getRawCommentTextin interfaceGroovyDoc- Returns:
- the raw comment text
-
isAnnotationType
public boolean isAnnotationType()Indicates whether this element represents an annotation type.- Specified by:
isAnnotationTypein interfaceGroovyDoc- Returns:
trueif this element is an annotation type
-
isAnnotationTypeElement
public boolean isAnnotationTypeElement()Indicates whether this element represents an annotation type member.- Specified by:
isAnnotationTypeElementin interfaceGroovyDoc- Returns:
trueif this element is an annotation type element
-
isClass
public boolean isClass()Indicates whether this element represents a class. -
isConstructor
public boolean isConstructor()Indicates whether this element represents a constructor.- Specified by:
isConstructorin interfaceGroovyDoc- Returns:
trueif this element is a constructor
-
isDeprecated
public boolean isDeprecated()Indicates whether this element is marked as deprecated.- Specified by:
isDeprecatedin interfaceGroovyDoc- Returns:
trueif this element is deprecated
-
isEnum
public boolean isEnum()Indicates whether this element represents an enum type. -
isEnumConstant
public boolean isEnumConstant()Indicates whether this element represents an enum constant.- Specified by:
isEnumConstantin interfaceGroovyDoc- Returns:
trueif this element is an enum constant
-
isError
public boolean isError()Indicates whether this element represents an error type. -
isRecord
public boolean isRecord()Indicates whether this element represents a record type. -
isException
public boolean isException()Indicates whether this element represents an exception type.- Specified by:
isExceptionin interfaceGroovyDoc- Returns:
trueif this element is an exception
-
isField
public boolean isField()Indicates whether this element represents a field. -
isIncluded
public boolean isIncluded()Indicates whether this element is included in the generated output.- Specified by:
isIncludedin interfaceGroovyDoc- Returns:
trueif this element is included
-
isInterface
public boolean isInterface()Indicates whether this element represents an interface.- Specified by:
isInterfacein interfaceGroovyDoc- Returns:
trueif this element is an interface
-
isMethod
public boolean isMethod()Indicates whether this element represents a method. -
isOrdinaryClass
public boolean isOrdinaryClass()Indicates whether this element represents an ordinary class.- Specified by:
isOrdinaryClassin interfaceGroovyDoc- Returns:
trueif this element is an ordinary class
-
name
Returns the simple name of this documented element. -
setRawCommentText
Replaces the raw documentation comment for this element.- Specified by:
setRawCommentTextin interfaceGroovyDoc- Parameters:
arg0- the raw comment text to store
-
firstSentenceCommentText
Returns the first sentence of the processed comment text.- Specified by:
firstSentenceCommentTextin interfaceGroovyDoc- Returns:
- the first sentence summary
-
compareTo
- Specified by:
compareToin interfaceComparable<GroovyDoc>
-
equals
-
hashCode
public int hashCode()
-