← 返回首页
Method (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Method Summary
    1. Methods declared in class Executable
    2. Methods declared in class AccessibleObject
    3. Methods declared in class Object
  4. Method Details
    1. setAccessible(boolean)
    2. getDeclaringClass()
    3. getName()
    4. getModifiers()
    5. getTypeParameters()
    6. getReturnType()
    7. getGenericReturnType()
    8. getParameterTypes()
    9. getParameterCount()
    10. getGenericParameterTypes()
    11. getExceptionTypes()
    12. getGenericExceptionTypes()
    13. equals(Object)
    14. hashCode()
    15. toString()
    16. toGenericString()
    17. invoke(Object, Object...)
    18. isBridge()
    19. isVarArgs()
    20. isSynthetic()
    21. isDefault()
    22. getDefaultValue()
    23. getAnnotation(Class)
    24. getDeclaredAnnotations()
    25. getParameterAnnotations()
    26. getAnnotatedReturnType()
Hide sidebar  Show sidebar

Class Method

All Implemented Interfaces: AnnotatedElement, GenericDeclaration, Member
public final class Method extends Executable
A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).

A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.

Since: 1.1 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.