public class MirrorMethod
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
MirrorClass<?> |
declaringClass() |
boolean |
equals(java.lang.Object o) |
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> clazz)
Retrieves the annotation on the class
|
boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Checks if this method has the given annotation
|
int |
hashCode() |
boolean |
hasModifier(int modifier)
Checks if this method has the given modifier
|
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.Object... args)
Invokes this method on the given object with the given parameters
|
boolean |
isAbstract() |
boolean |
isNotAbstract() |
boolean |
isNotStatic() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
int |
modifiers() |
java.lang.String |
name() |
MirrorClass<?>[] |
parameterTypes() |
MirrorMethod |
setAccessible(boolean accessible)
Sets this method to be accessible
|
java.lang.reflect.Method |
unwrap() |
public java.lang.reflect.Method unwrap()
Methodpublic MirrorClass<?> declaringClass()
public java.lang.String name()
public java.lang.Object invoke(java.lang.Object instance,
java.lang.Object... args)
instance - The instance to invoke onargs - The arguments to pass to the methodMethod.invoke(Object, Object...)public MirrorMethod setAccessible(boolean accessible)
accessible - public MirrorClass<?>[] parameterTypes()
public int modifiers()
public boolean isStatic()
public boolean isNotStatic()
public boolean isPublic()
public boolean isProtected()
public boolean isPrivate()
public boolean isAbstract()
public boolean isNotAbstract()
public boolean hasModifier(int modifier)
modifier - The modifierpublic boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
clazz - The annotation classpublic <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> clazz)
A - The type of the annotationclazz - The annotation classpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object