Class SimpleGroovyMethodDoc
java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyProgramElementDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyAbstractableElementDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyExecutableMemberDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyMethodDoc
- All Implemented Interfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyExecutableMemberDoc,GroovyMemberDoc,GroovyMethodDoc,GroovyProgramElementDoc
public class SimpleGroovyMethodDoc
extends SimpleGroovyExecutableMemberDoc
implements GroovyMethodDoc
Default
GroovyMethodDoc implementation.-
Field Summary
Fields inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
belongsToClassFields inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF -
Constructor Summary
ConstructorsConstructorDescriptionSimpleGroovyMethodDoc(String name, GroovyClassDoc belongsToClass) Creates a documented method owned by the supplied class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class in which the overridden method is declared.Returns the method that this method overrides.Returns the type that declares the method overridden by this method.booleanoverrides(GroovyMethodDoc arg0) Indicates whether this method overrides the supplied method.Returns the declared return type of this method.voidsetReturnType(GroovyType returnType) Updates the declared return type of this method.voidsetTypeParameters(String typeParameters) Stores the rendered type parameters for this method.Returns the rendered type parameters for this method.Methods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyExecutableMemberDoc
add, flatSignature, isNative, isSynchronized, isVarArgs, parameters, signature, thrownExceptions, thrownExceptionTypesMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
commentText, firstSentenceCommentText, isSyntheticMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyAbstractableElementDoc
isAbstract, setAbstractMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyProgramElementDoc
addAnnotationRef, annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName, setContainingPackage, setFinal, setPackagePrivate, setPrivate, setProtected, setPublic, setStaticMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
calculateFirstSentence, compareTo, getRawCommentText, getTypeDescription, getTypeSourceDescription, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isHidden, isIncluded, isInterface, isMarkdown, isMethod, isOrdinaryClass, isRecord, isScript, isTrait, name, setCommentText, setDeprecated, setFirstSentenceCommentText, setHidden, setMarkdown, setRawCommentText, setScript, setTokenType, tags, tokenType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.GroovyExecutableMemberDoc
flatSignature, isNative, isSynchronized, isVarArgs, parameters, signature, thrownExceptions, thrownExceptionTypesMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyMemberDoc
isSyntheticMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyMethodDoc
isAbstractMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Constructor Details
-
SimpleGroovyMethodDoc
Creates a documented method owned by the supplied class.- Parameters:
name- the method namebelongsToClass- the declaring class
-
-
Method Details
-
returnType
Returns the declared return type of this method.- Specified by:
returnTypein interfaceGroovyMethodDoc- Returns:
- the return type
-
setReturnType
Updates the declared return type of this method.- Specified by:
setReturnTypein interfaceGroovyMethodDoc- Parameters:
returnType- the return type to associate with this method
-
overriddenClass
Returns the class in which the overridden method is declared.- Specified by:
overriddenClassin interfaceGroovyMethodDoc- Returns:
- the overridden method's declaring class, or
nullif none exists
-
overriddenMethod
Returns the method that this method overrides.- Specified by:
overriddenMethodin interfaceGroovyMethodDoc- Returns:
- the overridden method, or
nullif none exists
-
overriddenType
Returns the type that declares the method overridden by this method.- Specified by:
overriddenTypein interfaceGroovyMethodDoc- Returns:
- the overridden type, or
nullif none exists
-
overrides
Indicates whether this method overrides the supplied method.- Specified by:
overridesin interfaceGroovyMethodDoc- Parameters:
arg0- the candidate method- Returns:
trueif this method overridesarg0
-
typeParameters
Returns the rendered type parameters for this method.- Returns:
- the type parameter declaration text
-
setTypeParameters
Stores the rendered type parameters for this method.- Parameters:
typeParameters- the type parameter declaration text
-