public final class JavaMethod extends java.lang.Object implements AnnotatedElement
Modifier and Type | Field and Description |
---|---|
static JavaMethod[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.Class<?> |
getDeclaringClass() |
java.lang.reflect.Type[] |
getGenericParameterTypes() |
java.lang.reflect.Type |
getGenericReturnType() |
java.util.List<java.lang.reflect.Method> |
getHierarchy() |
java.lang.reflect.Method |
getMethod() |
static JavaMethod |
getMethod(java.lang.Class declaringClass,
JavaMethodSignature signature) |
static JavaMethod |
getMethod(java.lang.Class declaringClass,
java.lang.reflect.Method method) |
java.lang.String |
getMethodName() |
java.lang.String |
getName() |
int |
getParameterCount() |
java.lang.Class<?>[] |
getParameterTypes() |
java.lang.Class |
getReturnType() |
JavaMethodSignature |
getSignature() |
int |
hashCode() |
java.lang.Object |
invoke(java.lang.Object o,
java.lang.Object... args) |
java.lang.String |
toString() |
public static final JavaMethod[] EMPTY_ARRAY
public final java.lang.Class<?> getDeclaringClass()
public final JavaMethodSignature getSignature()
public final java.util.List<java.lang.reflect.Method> getHierarchy()
public java.lang.String getMethodName()
public final java.lang.reflect.Method getMethod()
public final java.lang.reflect.Type[] getGenericParameterTypes()
public final java.lang.reflect.Type getGenericReturnType()
public static JavaMethod getMethod(java.lang.Class declaringClass, JavaMethodSignature signature)
public static JavaMethod getMethod(java.lang.Class declaringClass, java.lang.reflect.Method method)
public final java.lang.Object invoke(java.lang.Object o, java.lang.Object... args)
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String getName()
public final <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final java.lang.Class getReturnType()
public java.lang.Class<?>[] getParameterTypes()
public int getParameterCount()