public class PojoMethodImpl extends Object implements PojoMethod
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Get specified instance of an annotation defined on element.
|
List<? extends Annotation> |
getAnnotations()
Get all annotations defined on element.
|
Type[] |
getGenericParameterTypes()
Get the method generic parameter types
Note: Do not use, still in experimental mode.
|
String |
getName()
Get the name of the element.
|
Class<?>[] |
getParameterTypes()
Get the method parameters.
|
List<PojoParameter> |
getPojoParameters()
Get method parameters as PojoParameters.
|
Class<?> |
getReturnType() |
Object |
invoke(Object instance,
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 |
isPackagePrivate()
Package visibility only, often referred to default visibility when no visibility keywords are assigned.
|
boolean |
isPrivate()
Locally visible within enclosing element.
|
boolean |
isProtected()
Visible to extending elements.
|
boolean |
isPublic()
Visible to all.
|
boolean |
isStatic() |
boolean |
isSynthetic() |
String |
toString() |
public String getName()
PojoElementgetName in interface PojoElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotatablegetAnnotation in interface AnnotatableT - Class Type of annotation.annotationClass - The annotation class.public List<? extends Annotation> getAnnotations()
AnnotatablegetAnnotations in interface Annotatablepublic Object invoke(Object instance, 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 List<PojoParameter> getPojoParameters()
PojoMethodgetPojoParameters in interface PojoMethodpublic boolean isFinal()
isFinal in interface PojoMethodpublic boolean isPrivate()
AccessibleisPrivate in interface Accessiblepublic boolean isPackagePrivate()
AccessibleisPackagePrivate in interface Accessiblepublic boolean isProtected()
AccessibleisProtected in interface Accessiblepublic boolean isPublic()
AccessibleisPublic in interface Accessiblepublic boolean isStatic()
isStatic in interface PojoMethodpublic boolean isSynthetic()
isSynthetic in interface PojoMethodpublic boolean isConstructor()
isConstructor in interface PojoMethodpublic boolean isAbstract()
isAbstract in interface PojoMethodpublic Type[] getGenericParameterTypes()
PojoMethodgetGenericParameterTypes in interface PojoMethodpublic Class<?>[] getParameterTypes()
PojoMethodgetParameterTypes in interface PojoMethodpublic Class<?> getReturnType()
getReturnType in interface PojoMethodCopyright © 2010–2021. All rights reserved.