Interface MethodDoc

All Superinterfaces:
Comparable<Object>, Doc, ExecutableMemberDoc, MemberDoc, ProgramElementDoc
All Known Subinterfaces:
AnnotationTypeElementDoc
All Known Implementing Classes:
AnnotationTypeElementDocImpl, MethodDocImpl

@Deprecated public interface MethodDoc extends ExecutableMemberDoc
Deprecated.
The declarations in this package have been superseded by those in the package jdk.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 Details

    • isAbstract

      boolean isAbstract()
      Deprecated.
      Return true if this method is abstract
      Returns:
      true if this method is abstract
    • isDefault

      boolean isDefault()
      Deprecated.
      Return true if this method is default
      Returns:
      true if this method is default
    • returnType

      Type returnType()
      Deprecated.
      Get return type.
      Returns:
      the return type of this method, null if it is a constructor.
    • overriddenClass

      ClassDoc overriddenClass()
      Deprecated.
      Return the class containing the method that this method overrides.

      The overriddenClass method cannot accommodate certain generic type constructs. The overriddenType method 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.
    • overriddenType

      Type overriddenType()
      Deprecated.
      Return the type containing the method that this method overrides. It may be a ClassDoc or a ParameterizedType.
      Returns:
      the supertype whose method is overridden, or null if this method does not override another in a superclass
      Since:
      1.5
    • overriddenMethod

      MethodDoc overriddenMethod()
      Deprecated.
      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.
    • overrides

      boolean overrides(MethodDoc meth)
      Deprecated.
      Tests whether this method overrides another. The overridden method may be one declared in a superclass or a superinterface (unlike overriddenMethod()).

      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:
      true if this method overrides the other
      Since:
      1.5