public class PojoMethodImpl extends java.lang.Object implements PojoMethod
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Get specified instance of an annotation defined on element.
|
java.util.List<? extends java.lang.annotation.Annotation> |
getAnnotations()
Get all annotations defined on element.
|
java.lang.reflect.Type[] |
getGenericParameterTypes()
Get the method generic parameter types
Note: Do not use, still in experimental mode.
|
java.lang.String |
getName()
Get the name of the element.
|
java.lang.Class<?>[] |
getParameterTypes()
Get the method parameters.
|
java.util.List<PojoParameter> |
getPojoParameters()
Get method parameters as PojoParameters.
|
java.lang.Class<?> |
getReturnType() |
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the underlying method represented by this Method object, on the specified object with the specified
parameters.
|
boolean |
isAbstract() |
boolean |
isConstructor() |
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
java.lang.String |
toString() |
public java.lang.String getName()
PojoElementgetName in interface PojoElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AnnotatablegetAnnotation in interface AnnotatableT - Class Type of annotation.annotationClass - The annotation class.public java.util.List<? extends java.lang.annotation.Annotation> getAnnotations()
AnnotatablegetAnnotations in interface Annotatablepublic java.lang.Object invoke(java.lang.Object instance,
java.lang.Object... parameters)
PojoMethodinvoke in interface PojoMethodinstance - The class instance to invoke the method on.parameters - The parameters to pass to the method upon invocation.public java.util.List<PojoParameter> getPojoParameters()
PojoMethodgetPojoParameters in interface PojoMethodpublic boolean isFinal()
isFinal in interface PojoMethodpublic boolean isPrivate()
isPrivate in interface PojoMethodpublic boolean isProtected()
isProtected in interface PojoMethodpublic boolean isPublic()
isPublic in interface PojoMethodpublic boolean isStatic()
isStatic in interface PojoMethodpublic boolean isSynthetic()
isSynthetic in interface PojoMethodpublic boolean isConstructor()
isConstructor in interface PojoMethodpublic boolean isAbstract()
isAbstract in interface PojoMethodpublic java.lang.reflect.Type[] getGenericParameterTypes()
PojoMethodgetGenericParameterTypes in interface PojoMethodpublic java.lang.Class<?>[] getParameterTypes()
PojoMethodgetParameterTypes in interface PojoMethodpublic java.lang.Class<?> getReturnType()
getReturnType in interface PojoMethodpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015. All Rights Reserved.