Class ImplementedMethods

java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.ImplementedMethods

@Deprecated public class ImplementedMethods extends Object
Deprecated.
For a given class method, build an array of interface methods which it implements.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

  • Field Details

    • interfaces

      private final Map<MethodDoc,Type> interfaces
      Deprecated.
    • methlist

      private final List<MethodDoc> methlist
      Deprecated.
    • configuration

      private final Configuration configuration
      Deprecated.
    • utils

      private final Utils utils
      Deprecated.
    • classdoc

      private final ClassDoc classdoc
      Deprecated.
    • method

      private final MethodDoc method
      Deprecated.
  • Constructor Details

  • Method Details

    • build

      public MethodDoc[] build(boolean sort)
      Deprecated.
      Return the array of interface methods which the method passed in the constructor is implementing. The search/build order is as follows:
       1. Search in all the immediate interfaces which this method's class is
          implementing. Do it recursively for the superinterfaces as well.
       2. Traverse all the superclasses and search recursively in the
          interfaces which those superclasses implement.
      
      Returns:
      MethodDoc[] Array of implemented methods.
    • build

      public MethodDoc[] build()
      Deprecated.
    • getMethodHolder

      public Type getMethodHolder(MethodDoc methodDoc)
      Deprecated.
    • buildImplementedMethodList

      private void buildImplementedMethodList(boolean sort)
      Deprecated.
      Search for the method in the array of interfaces. If found check if it is overridden by any other subinterface method which this class implements. If it is not overidden, add it in the method list. Do this recursively for all the extended interfaces for each interface from the array passed.
    • removeOverriddenMethod

      private void removeOverriddenMethod(MethodDoc method)
      Deprecated.
      Search in the method list and check if it contains a method which is overridden by the method as parameter. If found, remove the overridden method from the method list.
      Parameters:
      method - Is this method overriding a method in the method list.
    • overridingMethodFound

      private boolean overridingMethodFound(MethodDoc method)
      Deprecated.
      Search in the already found methods' list and check if it contains a method which is overriding the method parameter or is the method parameter itself.
      Parameters:
      method - MethodDoc Method to be searched in the Method List for an overriding method.