|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.AnnotationHolder
org.jboss.reflect.plugins.MethodInfoImpl
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl
public class ReflectMethodInfoImpl
Method info
Field Summary | |
---|---|
protected Method |
method
The method, this only gets initialized after invoke() or getMethod() has been called to save memory |
Fields inherited from class org.jboss.reflect.plugins.MethodInfoImpl |
---|
declaringClass, exceptionTypes, hash, modifiers, name, parameters, parameterTypes, returnType |
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
annotationMap, annotationsArray |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.reflect.spi.MethodInfo |
---|
NO_EXCEPTIONS, NO_PARAMS, NO_PARAMS_TYPES |
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo |
---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected void |
accessCheck()
Check access permission. |
protected void |
accessCheck(boolean isPublic)
Check access permission. |
Method |
getMethod()
Get the method |
protected void |
initMethod()
|
Object |
invoke(Object target,
Object[] args)
Invoke the method |
protected static boolean |
isDeclaringClassPublic(Method method)
Is declaring class public. |
void |
setMethod(Method method)
Set the method |
Methods inherited from class org.jboss.reflect.plugins.MethodInfoImpl |
---|
calculateHash, equals, getDeclaringClass, getExceptionTypes, getModifiers, getName, getNumberParameters, getParameters, getParameterTypes, getReturnType, hashCode, isPublic, isStatic, isVolatile, toShortString, toString |
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations |
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo |
---|
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo |
---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Field Detail |
---|
protected transient volatile Method method
Constructor Detail |
---|
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 classMethod Detail |
---|
public void setMethod(Method method)
method
- the methodpublic Method getMethod()
protected static boolean isDeclaringClassPublic(Method method)
method
- the method
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 arguments
Throwable
- for any errorprotected void initMethod()
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |