## Uses of Class
java.lang.reflect.Method

- Packages that use Method
  Package | Description
  --- | ---
  java.lang |
  java.lang.annotation |
  java.lang.invoke |
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.

- - ### Uses of Method in java.lang

    Methods in java.lang that return Method
    Modifier and Type | Method and Description
    --- | ---
    `Method` | Class.`getDeclaredMethod(String name, Class<?>... parameterTypes)` Bck2Brwsr emulation can only seek public methods, otherwise it throws a `SecurityException`.
    `Method[]` | Class.`getDeclaredMethods()` Returns an array of `Method` objects reflecting all the methods declared by the class or interface represented by this `Class` object.
    `Method` | Class.`getMethod(String name, Class<?>... parameterTypes)` Returns a `Method` object that reflects the specified public member method of the class or interface represented by this `Class` object.
    `Method[]` | Class.`getMethods()` Returns an array containing `Method` objects reflecting all the public member methods of the class or interface represented by this `Class` object, including those declared by the class or interface and those inherited from superclasses and superinterfaces.

  - ### Uses of Method in java.lang.annotation

    Methods in java.lang.annotation that return Method
    Modifier and Type | Method and Description
    --- | ---
    `Method` | AnnotationTypeMismatchException.`element()` Returns the `Method` object for the incorrectly typed element.

    Constructors in java.lang.annotation with parameters of type Method
    Constructor and Description
    `AnnotationTypeMismatchException(Method element, String foundType)` Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.

  - ### Uses of Method in java.lang.invoke

    Methods in java.lang.invoke with parameters of type Method
    Modifier and Type | Method and Description
    --- | ---
    `MethodHandle` | MethodHandles.Lookup.`unreflect(Method m)` Makes a direct method handle to m, if the lookup class has permission.
    `MethodHandle` | MethodHandles.Lookup.`unreflectSpecial(Method m, Class<?> specialCaller)` Produces a method handle for a reflected method.

  - ### Uses of Method in java.lang.reflect

    Methods in java.lang.reflect with parameters of type Method
    Modifier and Type | Method and Description
    --- | ---
    `Object` | InvocationHandler.`invoke(Object proxy, Method method, Object[] args)` Processes a method invocation on a proxy instance and returns the result.

Copyright © 2025 API Design. All Rights Reserved.