public class ExternalGroovyClassDoc
extends Object
implements GroovyClassDoc
Represents a class not in the codebase being processed.
| Constructor and description |
|---|
ExternalGroovyClassDoc(Class externalClass)Creates a doc entry for the given external (non-source) class. |
| 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){@inheritDoc} |
|
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 other){@inheritDoc} |
|
public Class |
externalClass()Returns the underlying reflected class. |
|
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 String |
getFullPathName() |
|
public String |
getRawCommentText()Returns the raw documentation comment for this element.
|
|
public String |
getRelativeRootPath() |
|
public String |
getTypeSourceDescription()Returns "interface" if the external class is an interface; otherwise "class". |
|
public int |
hashCode(){@inheritDoc} |
|
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 |
typeName()The unqualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns " String".
|
Creates a doc entry for the given external (non-source) class.
externalClass - the reflected class to representReturns the annotations declared on this element.
Returns the processed comment text for this element.
{@inheritDoc}
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 constructorsReturns the containing class for this element.
null if this element is not nested within a classReturns the package that contains this element.
null if none is availableIndicates whether this type explicitly defines serializable fields metadata.
true if serializable fields are defined explicitlyReturns the enum constants declared by this type.
{@inheritDoc}
Returns the underlying reflected class.
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 fieldsResolves a referenced class name from the context of this type.
className - the class name to resolvenull if it cannot be resolvedReturns the first sentence of the processed comment text.
Returns the raw documentation comment for this element.
Returns "interface" if the external class is an interface; otherwise "class".
{@inheritDoc}
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 classesReturns 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 abstractIndicates 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 type implements Externalizable.
true if this type is externalizableIndicates 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 finalIndicates 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 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 has package-private visibility.
true if this element is package-privateIndicates 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 publicIndicates whether this element represents a record type.
true if this element is a recordIndicates whether this type implements Serializable.
true if this type is serializable Indicates whether this element is declared static.
true if this element is staticReturns 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 methodsReturns 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 superclasstrue if this type is a subclass of gcdReturns the direct superclass of this type.
null if none existsReturns the direct superclass as a type reference.
null if none exists 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.