Package org.codehaus.groovy.groovydoc
Interface GroovyMethodDoc
- All Superinterfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyExecutableMemberDoc,GroovyMemberDoc,GroovyProgramElementDoc
- All Known Implementing Classes:
SimpleGroovyMethodDoc
Describes a method in the Groovydoc model.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this method is declared abstract.Returns 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.voidUpdates the declared return type of this method.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.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.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Method Details
-
isAbstract
boolean isAbstract()Indicates whether this method is declared abstract.- Returns:
trueif this method is abstract
-
overriddenClass
GroovyClassDoc overriddenClass()Returns the class in which the overridden method is declared.- Returns:
- the overridden method's declaring class, or
nullif none exists
-
overriddenMethod
GroovyMethodDoc overriddenMethod()Returns the method that this method overrides.- Returns:
- the overridden method, or
nullif none exists
-
overriddenType
GroovyType overriddenType()Returns the type that declares the method overridden by this method.- Returns:
- the overridden type, or
nullif none exists
-
overrides
Indicates whether this method overrides the supplied method.- Parameters:
arg0- the candidate method- Returns:
trueif this method overridesarg0
-
returnType
GroovyType returnType()Returns the declared return type of this method.- Returns:
- the return type
-
setReturnType
Updates the declared return type of this method.- Parameters:
o- the return type to associate with this method
-