public class ArrayClassDocWrapper
extends Object
implements GroovyClassDoc
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 and description |
|---|
ArrayClassDocWrapper(GroovyClassDoc delegate)Creates a wrapper for the given component-type class doc. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public GroovyAnnotationRef[] |
annotations()* Returns the annotations declared on this element. * *
|
|
public String |
commentText()* Returns the processed comment text for this element. * *
|
|
public int |
compareTo(GroovyDoc o)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 GroovyConstructorDoc[] |
constructors()* Returns the constructors declared by this type. * *
|
|
public GroovyConstructorDoc[] |
constructors(boolean filter)* Returns the constructors declared by this type, optionally applying the active visibility filter. * *
|
|
public GroovyClassDoc |
containingClass()* Returns the containing class for this element. * *
|
|
public GroovyPackageDoc |
containingPackage()* Returns the package that contains this element. * *
|
|
public boolean |
definesSerializableFields()* Indicates whether this type explicitly defines serializable fields metadata. * *
|
|
public GroovyFieldDoc[] |
enumConstants()* Returns the enum constants declared by this type. * *
|
|
public boolean |
equals(Object obj)Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
|
|
public GroovyFieldDoc[] |
fields()* Returns the fields declared by this type. * *
|
|
public GroovyFieldDoc[] |
fields(boolean filter)* Returns the fields declared by this type, optionally applying the active visibility filter. * *
|
|
public GroovyClassDoc |
findClass(String className)* Resolves a referenced class name from the context of this type. * *
|
|
public String |
firstSentenceCommentText()* Returns the first sentence of the processed comment text. * *
|
|
public GroovyClassDoc |
getDelegate()Returns the wrapped component-type class doc. |
|
public String |
getFullPathName() |
|
public String |
getRawCommentText()* Returns the raw documentation comment for this element. * *
|
|
public String |
getRelativeRootPath() |
|
public int |
hashCode()Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
The general contract of
|
|
public GroovyClassDoc[] |
importedClasses()* Returns the explicitly imported classes visible to this type. * *
|
|
public GroovyPackageDoc[] |
importedPackages()* Returns the imported packages visible to this type. * *
|
|
public GroovyClassDoc[] |
innerClasses()* Returns the nested classes declared by this type. * *
|
|
public GroovyClassDoc[] |
innerClasses(boolean filter)* Returns the nested classes declared by this type, optionally applying the active visibility filter. * *
|
|
public GroovyType[] |
interfaceTypes()* Returns the interface types directly implemented or extended by this type. * *
|
|
public GroovyClassDoc[] |
interfaces()* Returns the interfaces directly implemented or extended by this type. * *
|
|
public boolean |
isAbstract()* Indicates whether this type is declared abstract. * *
|
|
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 |
isExternalizable()* Indicates whether this type implements Externalizable. * *
|
|
public boolean |
isField()* Indicates whether this element represents a field. * *
|
|
public boolean |
isFinal()* Indicates whether this element is declared final.
*
*
|
|
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 |
isMethod()* Indicates whether this element represents a method. * *
|
|
public boolean |
isOrdinaryClass()* Indicates whether this element represents an ordinary class. * *
|
|
public boolean |
isPackagePrivate()* Indicates whether this element has package-private visibility. * *
|
|
public boolean |
isPrimitive()* Indicates whether this type is a Java primitive type. * *
|
|
public boolean |
isPrivate()* Indicates whether this element is declared private.
*
*
|
|
public boolean |
isProtected()* Indicates whether this element is declared protected.
*
*
|
|
public boolean |
isPublic()* Indicates whether this element is declared public.
*
*
|
|
public boolean |
isRecord()* Indicates whether this element represents a record type. * *
|
|
public boolean |
isSerializable()* Indicates whether this type implements Serializable. * *
|
|
public boolean |
isStatic()* Indicates whether this element is declared static.
*
*
|
|
public GroovyMethodDoc[] |
methods()* Returns the methods declared by this type. * *
|
|
public GroovyMethodDoc[] |
methods(boolean filter)* Returns the methods declared by this type, optionally applying the active visibility filter. * *
|
|
public int |
modifierSpecifier()* Returns the modifier flags for this element. * *
|
|
public String |
modifiers()* Returns the rendered modifier text for this element. * *
|
|
public String |
name()* Returns the simple name of this documented element. * *
|
|
public GroovyFieldDoc[] |
properties()* Returns the Groovy properties declared by this type. * *
|
|
public String |
qualifiedName()* Returns the fully qualified name of this element. * *
|
|
public String |
qualifiedTypeName()* The qualified name of this type excluding any dimension information. * For example, a two-dimensional array of String returns " java.lang.String".
|
|
public GroovyFieldDoc[] |
serializableFields()* Returns the fields that participate in serialization. * *
|
|
public GroovyMethodDoc[] |
serializationMethods()* Returns the methods related to custom serialization. * *
|
|
public void |
setRawCommentText(String arg0)* Replaces the raw documentation comment for this element. * *
|
|
public String |
simpleTypeName()* The unqualified name of this type excluding any dimension or nesting information. * For example, the class Outer.Inner returns "Inner".
|
|
public boolean |
subclassOf(GroovyClassDoc gcd)* Determines whether this type is a subclass of the supplied candidate. * *
|
|
public GroovyClassDoc |
superclass()* Returns the direct superclass of this type. * *
|
|
public GroovyType |
superclassType()* Returns the direct superclass as a type reference. * *
|
|
public String |
toString()Returns a string representation of the object.
|
|
public String |
typeName()* The unqualified name of this type excluding any dimension information. * For example, a two-dimensional array of String returns " String".
|
Creates a wrapper for the given component-type class doc.
delegate - the non-array class doc to wrap* Returns the annotations declared on this element. * *
* 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 constructors declared by this type. * *
* Returns the constructors declared by this type, optionally applying the active visibility filter. * *
filter - true to include only visible constructors, false to include all constructors
** Returns the containing class for this element. * *
null if this element is not nested within a class* Returns the package that contains this element. * *
null if none is available* Indicates whether this type explicitly defines serializable fields metadata. * *
true if serializable fields are defined explicitly* Returns the enum constants declared by this type. * *
Indicates whether some other object is "equal to" this one.
The equals method implements an equivalence relation
on non-null object references:
x, x.equals(x) should return
true.
x and y, x.equals(y)
should return true if and only if
y.equals(x) returns true.
x, y, and z, if
x.equals(y) returns true and
y.equals(z) returns true, then
x.equals(z) should return true.
x and y, multiple invocations of
x.equals(y) consistently return true
or consistently return false, provided no
information used in equals comparisons on the
objects is modified.
x,
x.equals(null) should return false.
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
equals method for class Object implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x and
y, this method returns true if and only
if x and y refer to the same object
(x == y has the value true).
In other words, under the reference equality equivalence
relation, each equivalence class only has a single element.hashCode method, which states
that equal objects must have equal hash codes.obj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.* Returns the fields declared by this type. * *
* Returns the fields declared by this type, optionally applying the active visibility filter. * *
filter - true to include only visible fields, false to include all fields
** Resolves a referenced class name from the context of this type. * *
className - the class name to resolve
*null if it cannot be resolved* Returns the first sentence of the processed comment text. * *
Returns the wrapped component-type class doc.
* Returns the raw documentation comment for this element. * *
Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
The general contract of hashCode is:
hashCode method
must consistently return the same integer, provided no information
used in equals comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
hashCode method on each of the two objects must produce the
same integer result.
hashCode method on each of the two objects
must produce distinct integer results. However, the programmer
should be aware that producing distinct integer results for
unequal objects may improve the performance of hash tables.
hashCode method defined
by class Object returns distinct integers for distinct objects.* 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. * *
* Returns the nested classes declared by this type, optionally applying the active visibility filter. * *
filter - true to include only visible nested classes, false to include all nested classes
** Returns the interface types directly implemented or extended by this type. * *
* Returns the interfaces directly implemented or extended by this type. * *
* Indicates whether this type is declared abstract. * *
true if this type is abstract* 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 type implements Externalizable. * *
true if this type is externalizable* Indicates whether this element represents a field. * *
true if this element is a field
* Indicates whether this element is declared final.
*
*
true if this element is final* 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 interface* 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 has package-private visibility. * *
true if this element is package-private* Indicates whether this type is a Java primitive type. * *
true if this type is primitive
* Indicates whether this element is declared private.
*
*
true if this element is private
* Indicates whether this element is declared protected.
*
*
true if this element is protected
* Indicates whether this element is declared public.
*
*
true if this element is public* Indicates whether this element represents a record type. * *
true if this element is a record* Indicates whether this type implements Serializable. * *
true if this type is serializable
* Indicates whether this element is declared static.
*
*
true if this element is static* Returns the methods declared by this type. * *
* Returns the methods declared by this type, optionally applying the active visibility filter. * *
filter - true to include only visible methods, false to include all methods
** Returns the modifier flags for this element. * *
* Returns the rendered modifier text for this element. * *
* 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.
* For example, a two-dimensional array of String returns "java.lang.String".
* Returns the fields that participate in serialization. * *
* Returns the methods related to custom serialization. * *
* Replaces the raw documentation comment for this element. * *
arg0 - the raw comment text to store
* The unqualified name of this type excluding any dimension or nesting information.
* For example, the class Outer.Inner returns "Inner".
* Determines whether this type is a subclass of the supplied candidate. * *
gcd - the candidate superclass
*true if this type is a subclass of gcd* Returns the direct superclass of this type. * *
null if none exists* Returns the direct superclass as a type reference. * *
null if none existsReturns a string representation of the object.
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The string output is not necessarily stable over time or across
JVM invocations.toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
* The unqualified name of this type excluding any dimension information.
* For example, a two-dimensional array of String returns "String".
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.