Class MethodDocImpl

    • Constructor Detail

      • MethodDocImpl

        public MethodDocImpl​(DocEnv env,
                             com.sun.tools.javac.code.Symbol.MethodSymbol sym)
        Deprecated.
        constructor.
      • MethodDocImpl

        public MethodDocImpl​(DocEnv env,
                             com.sun.tools.javac.code.Symbol.MethodSymbol sym,
                             com.sun.source.util.TreePath treePath)
        Deprecated.
        constructor.
    • Method Detail

      • isMethod

        public boolean isMethod()
        Deprecated.
        Return true if it is a method, which it is. Note: constructors are not methods. This method is overridden by AnnotationTypeElementDocImpl.
        Specified by:
        isMethod in interface Doc
        Overrides:
        isMethod in class DocImpl
        Returns:
        true
      • isDefault

        public boolean isDefault()
        Deprecated.
        Return true if this method is default
        Specified by:
        isDefault in interface MethodDoc
        Returns:
        true if this method is default
      • isAbstract

        public boolean isAbstract()
        Deprecated.
        Return true if this method is abstract
        Specified by:
        isAbstract in interface MethodDoc
        Returns:
        true if this method is abstract
      • returnType

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

        public ClassDoc overriddenClass()
        Deprecated.
        Return the class that originally defined the method that is overridden by the current definition, or null if no such class exists.
        Specified by:
        overriddenClass in interface MethodDoc
        Returns:
        a ClassDocImpl representing the superclass that originally defined this method, null if this method does not override a definition in a superclass.
      • overriddenType

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

        public MethodDoc overriddenMethod()
        Deprecated.
        Return the method that this method overrides.
        Specified by:
        overriddenMethod in interface MethodDoc
        Returns:
        a MethodDoc representing a method definition in a superclass this method overrides, null if this method does not override.
      • overrides

        public 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.

        Specified by:
        overrides in interface MethodDoc
        Parameters:
        meth - the other method to examine
        Returns:
        true if this method overrides the other
      • name

        public String name()
        Deprecated.
        Description copied from class: DocImpl
        Returns the name of this Doc item.
        Specified by:
        name in interface Doc
        Specified by:
        name in class DocImpl
        Returns:
        the name
      • toString

        public String toString()
        Deprecated.
        Returns a string representation of this method. Includes the qualified signature, the qualified method name, and any type parameters. Type parameters follow the class name, as they do in the syntax for invoking methods with explicit type parameters.
        Overrides:
        toString in class DocImpl