- 
- All Superinterfaces:
- Comparable<Object>,- Doc,- ExecutableMemberDoc,- MemberDoc,- ProgramElementDoc
 - All Known Subinterfaces:
- AnnotationTypeElementDoc
 
 @Deprecated(since="9", forRemoval=true) public interface MethodDoc extends ExecutableMemberDoc Deprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.Represents a method of a java class.- Since:
- 1.2
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanisAbstract()Deprecated, for removal: This API element is subject to removal in a future version.Return true if this method is abstractbooleanisDefault()Deprecated, for removal: This API element is subject to removal in a future version.Return true if this method is defaultClassDocoverriddenClass()Deprecated, for removal: This API element is subject to removal in a future version.Return the class containing the method that this method overrides.MethodDocoverriddenMethod()Deprecated, for removal: This API element is subject to removal in a future version.Return the method that this method overrides.TypeoverriddenType()Deprecated, for removal: This API element is subject to removal in a future version.Return the type containing the method that this method overrides.booleanoverrides(MethodDoc meth)Deprecated, for removal: This API element is subject to removal in a future version.Tests whether this method overrides another.TypereturnType()Deprecated, for removal: This API element is subject to removal in a future version.Get return type.- 
Methods declared in interface com.sun.javadoc.DoccommentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, name, position, seeTags, setRawCommentText, tags, tags
 - 
Methods declared in interface com.sun.javadoc.ExecutableMemberDocflatSignature, isNative, isSynchronized, isVarArgs, parameters, paramTags, receiverType, signature, thrownExceptions, thrownExceptionTypes, throwsTags, typeParameters, typeParamTags
 - 
Methods declared in interface com.sun.javadoc.MemberDocisSynthetic
 - 
Methods declared in interface com.sun.javadoc.ProgramElementDocannotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
 
- 
 
- 
- 
- 
Method Detail- 
isAbstractboolean isAbstract() Deprecated, for removal: This API element is subject to removal in a future version.Return true if this method is abstract- Returns:
- true if this method is abstract
 
 - 
isDefaultboolean isDefault() Deprecated, for removal: This API element is subject to removal in a future version.Return true if this method is default- Returns:
- true if this method is default
 
 - 
returnTypeType returnType() Deprecated, for removal: This API element is subject to removal in a future version.Get return type.- Returns:
- the return type of this method, null if it is a constructor.
 
 - 
overriddenClassClassDoc overriddenClass() Deprecated, for removal: This API element is subject to removal in a future version.Return the class containing the method that this method overrides.The overriddenClassmethod cannot accommodate certain generic type constructs. TheoverriddenTypemethod should be used instead.- Returns:
- a ClassDoc representing the superclass defining a method that this method overrides, or null if this method does not override.
 
 - 
overriddenTypeType overriddenType() Deprecated, for removal: This API element is subject to removal in a future version.Return the type containing the method that this method overrides. It may be aClassDocor aParameterizedType.- Returns:
- the supertype whose method is overridden, or null if this method does not override another in a superclass
- Since:
- 1.5
 
 - 
overriddenMethodMethodDoc overriddenMethod() Deprecated, for removal: This API element is subject to removal in a future version.Return the method that this method overrides.- Returns:
- a MethodDoc representing a method definition in a superclass this method overrides, null if this method does not override.
 
 - 
overridesboolean overrides(MethodDoc meth) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether this method overrides another. The overridden method may be one declared in a superclass or a superinterface (unlikeoverriddenMethod()).When a non-abstract method overrides an abstract one, it is also said to implement the other. - Parameters:
- meth- the other method to examine
- Returns:
- trueif this method overrides the other
- Since:
- 1.5
 
 
- 
 
-