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, setAccessible
public String toGenericString()
public Object invoke(Object object, Object... args) throws IllegalAccessException, InvocationTargetException
public int getModifiers()
getModifiers
in interface Member
public Class<?> getReturnType()
public Class<?>[] getParameterTypes()
public Type[] getGenericParameterTypes()
public Class<?>[] getExceptionTypes()
public Class<?> getDeclaringClass()
getDeclaringClass
in interface Member
public Annotation[] getAnnotations()
getAnnotations
in class AccessibleObject
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in class AccessibleObject
public <T extends Annotation> T getAnnotation(Class<T> annotationCls)
getAnnotation
in class AccessibleObject
public Annotation[][] getParameterAnnotations()
public boolean isSynthetic()
isSynthetic
in interface Member
public Object getDefaultValue()
public boolean equals(Object obj)
Object
public boolean isVarArgs()
public boolean isBridge()