public class ReflectMethodInfoImpl extends MethodInfoImpl
| Modifier and Type | Field and Description |
|---|---|
protected Method |
method
The method
|
declaringClass, exceptionTypes, hash, modifiers, name, parameters, parameterTypes, returnTypeannotationMap, annotationsArrayNO_EXCEPTIONS, NO_PARAMS, NO_PARAMS_TYPESABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC| Constructor and Description |
|---|
ReflectMethodInfoImpl()
Create a new method info
|
ReflectMethodInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo returnType,
ParameterInfo[] parameters,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new MethodInfo.
|
ReflectMethodInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo returnType,
TypeInfo[] parameterTypes,
AnnotationValue[][] parameterAnnotations,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new MethodInfo.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
accessCheck()
Check access permission.
|
protected void |
accessCheck(boolean isPublic)
Check access permission.
|
Method |
getMethod()
Get the method
|
Object |
invoke(Object target,
Object[] args)
Invoke the method
|
void |
setMethod(Method method)
Set the method
|
calculateHash, equals, getDeclaringClass, getExceptionTypes, getModifiers, getName, getParameters, getParameterTypes, getReturnType, hashCode, isPublic, isStatic, isVolatile, toShortString, toStringgetAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentprotected transient Method method
public ReflectMethodInfoImpl()
public ReflectMethodInfoImpl(AnnotationValue[] annotations, String name, TypeInfo returnType, TypeInfo[] parameterTypes, AnnotationValue[][] parameterAnnotations, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
annotations - the annotationsname - the method namereturnType - the return typeparameterTypes - the parameter typesparameterAnnotations - the parameter annotationsexceptionTypes - the exception typesmodifiers - the modifiersdeclaring - the declaring classpublic ReflectMethodInfoImpl(AnnotationValue[] annotations, String name, TypeInfo returnType, ParameterInfo[] parameters, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
annotations - the annotationsname - the method namereturnType - the return typeparameters - the parametersexceptionTypes - the exception typesmodifiers - the modifiersdeclaring - the declaring classpublic void setMethod(Method method)
method - the methodpublic Method getMethod()
protected final void accessCheck()
protected final void accessCheck(boolean isPublic)
isPublic - whether the field is publicpublic Object invoke(Object target, Object[] args) throws Throwable
MethodInfoinvoke in interface MethodInfoinvoke in class MethodInfoImpltarget - the targetargs - the argumentsThrowable - for any errorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.