public class ReflectMethodInfoImpl extends MethodInfoImpl
Modifier and Type | Field and Description |
---|---|
protected Method |
method
The method
|
declaringClass, exceptionTypes, hash, modifiers, name, parameters, parameterTypes, returnType
annotationMap, annotationsArray
NO_EXCEPTIONS, NO_PARAMS, NO_PARAMS_TYPES
ABSTRACT, 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, toString
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected 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
MethodInfo
invoke
in interface MethodInfo
invoke
in class MethodInfoImpl
target
- the targetargs
- the argumentsThrowable
- for any errorCopyright © 2015 JBoss by Red Hat. All rights reserved.