Package org.codehaus.groovy.groovydoc
Interface GroovyClassDoc
- All Superinterfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyProgramElementDoc,GroovyType
- All Known Implementing Classes:
ArrayClassDocWrapper,ExternalGroovyClassDoc,SimpleGroovyClassDoc
Describes a Groovy type together with the members and relationships needed to render its documentation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the constructors declared by this type.constructors(boolean filter) Returns the constructors declared by this type, optionally applying the active visibility filter.booleanIndicates whether this type explicitly defines serializable fields metadata.Returns the enum constants declared by this type.fields()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 documentation output path for this type.Returns the relative path from this type to the documentation root.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 type implementsExternalizable.booleanIndicates whether this type implementsSerializable.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 Groovy properties declared by this type.Returns the fields that participate in serialization.Returns the methods related to custom serialization.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.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, setRawCommentTextMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedNameMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyType
isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
-
Method Details
-
constructors
GroovyConstructorDoc[] constructors()Returns the constructors declared by this type.- Returns:
- the declared constructors
-
constructors
Returns the constructors declared by this type, optionally applying the active visibility filter.- Parameters:
filter-trueto include only visible constructors,falseto include all constructors- Returns:
- the matching constructors
-
definesSerializableFields
boolean definesSerializableFields()Indicates whether this type explicitly defines serializable fields metadata.- Returns:
trueif serializable fields are defined explicitly
-
enumConstants
GroovyFieldDoc[] enumConstants()Returns the enum constants declared by this type.- Returns:
- the declared enum constants
-
fields
GroovyFieldDoc[] fields()Returns the fields declared by this type.- Returns:
- the declared fields
-
properties
GroovyFieldDoc[] properties()Returns the Groovy properties declared by this type.- Returns:
- the declared properties
-
fields
Returns the fields declared by this type, optionally applying the active visibility filter.- 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.- Parameters:
className- the class name to resolve- Returns:
- the matching class documentation, or
nullif it cannot be resolved
-
importedClasses
GroovyClassDoc[] importedClasses()Returns the explicitly imported classes visible to this type.- Returns:
- the imported classes
-
importedPackages
GroovyPackageDoc[] importedPackages()Returns the imported packages visible to this type.- Returns:
- the imported packages
-
innerClasses
GroovyClassDoc[] innerClasses()Returns the nested classes declared by this type.- Returns:
- the nested classes
-
innerClasses
Returns the nested classes declared by this type, optionally applying the active visibility filter.- Parameters:
filter-trueto include only visible nested classes,falseto include all nested classes- Returns:
- the matching nested classes
-
interfaces
GroovyClassDoc[] interfaces()Returns the interfaces directly implemented or extended by this type.- Returns:
- the direct interfaces
-
interfaceTypes
GroovyType[] interfaceTypes()Returns the interface types directly implemented or extended by this type.- Returns:
- the direct interface types
-
isAbstract
boolean isAbstract()Indicates whether this type is declared abstract.- Returns:
trueif this type is abstract
-
isExternalizable
boolean isExternalizable()Indicates whether this type implementsExternalizable.- Returns:
trueif this type is externalizable
-
isSerializable
boolean isSerializable()Indicates whether this type implementsSerializable.- Returns:
trueif this type is serializable
-
methods
GroovyMethodDoc[] methods()Returns the methods declared by this type.- Returns:
- the declared methods
-
methods
Returns the methods declared by this type, optionally applying the active visibility filter.- Parameters:
filter-trueto include only visible methods,falseto include all methods- Returns:
- the matching methods
-
serializableFields
GroovyFieldDoc[] serializableFields()Returns the fields that participate in serialization.- Returns:
- the serializable fields
-
serializationMethods
GroovyMethodDoc[] serializationMethods()Returns the methods related to custom serialization.- Returns:
- the serialization methods
-
subclassOf
Determines whether this type is a subclass of the supplied candidate.- Parameters:
gcd- the candidate superclass- Returns:
trueif this type is a subclass ofgcd
-
superclass
GroovyClassDoc superclass()Returns the direct superclass of this type.- Returns:
- the direct superclass, or
nullif none exists
-
superclassType
GroovyType superclassType()Returns the direct superclass as a type reference.- Returns:
- the direct superclass type, or
nullif none exists
-
getFullPathName
String getFullPathName()Returns the documentation output path for this type.- Returns:
- the full path used when rendering this type
-
getRelativeRootPath
String getRelativeRootPath()Returns the relative path from this type to the documentation root.- Returns:
- the relative path to the documentation root
-