public interface MethodDoc extends ExecutableMemberDoc
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbstract()
Return true if this method is abstract
|
boolean |
isDefault()
Return true if this method is default
|
ClassDoc |
overriddenClass()
Return the class containing the method that this method overrides.
|
MethodDoc |
overriddenMethod()
Return the method that this method overrides.
|
Type |
overriddenType()
Return the type containing the method that this method overrides.
|
boolean |
overrides(MethodDoc meth)
Tests whether this method overrides another.
|
Type |
returnType()
Get return type.
|
flatSignature, isNative, isSynchronized, isVarArgs, parameters, paramTags, receiverType, signature, thrownExceptions, thrownExceptionTypes, throwsTags, typeParameters, typeParamTagsisSyntheticannotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedNamecommentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, name, position, seeTags, setRawCommentText, tags, tagsboolean isAbstract()
boolean isDefault()
Type returnType()
ClassDoc overriddenClass()
The overriddenClass method cannot
accommodate certain generic type constructs. The
overriddenType method should be used instead.
Type overriddenType()
ClassDoc or a ParameterizedType.MethodDoc overriddenMethod()
boolean overrides(MethodDoc meth)
overriddenMethod()).
When a non-abstract method overrides an abstract one, it is also said to implement the other.
meth - the other method to examine Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.