|
||||||||||
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.javassist.JavassistAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo
org.jboss.reflect.plugins.javassist.JavassistMethodInfo
public class JavassistMethodInfo
Field Summary |
---|
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo |
---|
exceptionTypes, parameters, parameterTypes, typeInfo |
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo |
---|
annotationHelper, 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 | |
---|---|
JavassistMethodInfo(AnnotationHelper annotationHelper,
JavassistTypeInfo typeInfo,
org.jboss.reflect.plugins.javassist.SignatureKey key,
javassist.CtMethod ctMethod)
Create a new JavassistMethodInfo. |
Method Summary | |
---|---|
protected void |
createParameterAnnotations()
|
boolean |
equals(Object obj)
|
protected void |
generateParameters()
Generate parameters |
AnnotationValue[] |
getAnnotations()
Get the annotations |
ClassInfo |
getDeclaringClass()
Get the declaring class |
ClassInfo[] |
getExceptionTypes()
Get the exception types |
protected int |
getHashCode()
|
int |
getModifiers()
Get the modifiers |
String |
getName()
Get the method name |
protected javassist.CtBehavior |
getParameterizedObject()
|
ParameterInfo[] |
getParameters()
Get the parameters |
TypeInfo[] |
getParameterTypes()
Get the parameter types |
TypeInfo |
getReturnType()
Get the return type |
Object |
invoke(Object target,
Object[] args)
Invoke the method |
boolean |
isPublic()
Whether it is public |
boolean |
isStatic()
Whether it is static |
boolean |
isVolatile()
Whether it is volatile |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo |
---|
setupParameterAnnotations |
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo |
---|
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, hashCode, 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, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Constructor Detail |
---|
public JavassistMethodInfo(AnnotationHelper annotationHelper, JavassistTypeInfo typeInfo, org.jboss.reflect.plugins.javassist.SignatureKey key, javassist.CtMethod ctMethod)
annotationHelper
- the annotation helpertypeInfo
- the type infokey
- the keyctMethod
- the methodMethod Detail |
---|
public String getName()
MethodInfo
getName
in interface MethodInfo
public ClassInfo getDeclaringClass()
MemberInfo
getDeclaringClass
in interface MemberInfo
public int getModifiers()
ModifierInfo
getModifiers
in interface ModifierInfo
public boolean isPublic()
ModifierInfo
isPublic
in interface ModifierInfo
public boolean isStatic()
ModifierInfo
isStatic
in interface ModifierInfo
public boolean isVolatile()
ModifierInfo
isVolatile
in interface ModifierInfo
public ClassInfo[] getExceptionTypes()
MethodInfo
getExceptionTypes
in interface MethodInfo
public TypeInfo getReturnType()
MethodInfo
getReturnType
in interface MethodInfo
public ParameterInfo[] getParameters()
MethodInfo
getParameters
in interface MethodInfo
public TypeInfo[] getParameterTypes()
MethodInfo
getParameterTypes
in interface MethodInfo
public Object invoke(Object target, Object[] args) throws Throwable
MethodInfo
invoke
in interface MethodInfo
target
- the targetargs
- the arguments
Throwable
- for any errorprotected int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
public boolean equals(Object obj)
equals
in class Object
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
protected void generateParameters()
public AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations
in interface AnnotatedInfo
protected javassist.CtBehavior getParameterizedObject()
protected void createParameterAnnotations()
createParameterAnnotations
in class JavassistAnnotatedParameterInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |