public final class Method extends AccessibleObject implements Member
| Constructor and Description |
|---|
Method() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
default implementation is just an identity check
|
<T extends Annotation> |
getAnnotation(Class<T> annotationCls) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getDeclaringClass() |
Object |
getDefaultValue() |
Class<?>[] |
getExceptionTypes() |
Type[] |
getGenericParameterTypes() |
int |
getModifiers() |
String |
getName() |
Annotation[][] |
getParameterAnnotations() |
Class<?>[] |
getParameterTypes() |
Class<?> |
getReturnType() |
int |
hashCode() |
Object |
invoke(Object object,
Object... args) |
boolean |
isBridge() |
boolean |
isSynthetic() |
boolean |
isVarArgs() |
String |
toGenericString() |
String |
toString() |
isAccessible, isAnnotationPresent, setAccessible, setAccessiblepublic String toGenericString()
public Object invoke(Object object, Object... args) throws IllegalAccessException, InvocationTargetException
public int getModifiers()
getModifiers in interface Memberpublic Class<?> getReturnType()
public Class<?>[] getParameterTypes()
public Type[] getGenericParameterTypes()
public Class<?>[] getExceptionTypes()
public Class<?> getDeclaringClass()
getDeclaringClass in interface Memberpublic Annotation[] getAnnotations()
getAnnotations in class AccessibleObjectpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in class AccessibleObjectpublic <T extends Annotation> T getAnnotation(Class<T> annotationCls)
getAnnotation in class AccessibleObjectpublic Annotation[][] getParameterAnnotations()
public boolean isSynthetic()
isSynthetic in interface Memberpublic Object getDefaultValue()
public boolean equals(Object obj)
Objectpublic boolean isVarArgs()
public boolean isBridge()