public class JavassistMethodInfo extends JavassistAnnotatedParameterInfo implements MutableMethodInfo, MethodInfoInternal
MutableMethodInfo.MutableMethodInfo,
Serialized FormctBehavior, exceptionTypes, parameters, parameterTypes, typeInfoannotationHelper, annotationMap, 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 |
|---|
JavassistMethodInfo(SignatureKey signatureKey,
AnnotationHelper annotationHelper,
JavassistTypeInfo typeInfo,
javassist.CtMethod ctMethod)
Create a new JavassistMethodInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
executeCommand(MutableMethodInfoCommand mmc)
TODO: something similar to CtBehavior.instrument(...)
|
javassist.CtMethod |
getCtMethod() |
protected int |
getHashCode() |
String |
getName()
Get the method name
|
int |
getNumberParameters() |
TypeInfo |
getReturnType()
Get the return type
|
Object |
invoke(Object target,
Object[] args)
Invoke the method
|
void |
setName(String name)
Method name
|
void |
setReturnType(ClassInfo returnType)
Set type of the returned value
|
void |
setReturnType(String returnType)
Set type of the returned value
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
createParameterAnnotations, generateParameters, getAnnotations, getDeclaringClass, getDescriptor, getExceptionTypes, getMethodSignature, getModifiers, getParameters, getParameterTypes, getSignatureKey, isPublic, isStatic, isVolatile, setBody, setExceptions, setExceptions, setModifier, setParameters, setParameters, setupParameterAnnotationsgetAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitsetBody, setExceptions, setExceptions, setModifier, setParameters, setParametersgetExceptionTypes, getParameters, getParameterTypesgetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentgetDeclaringClassgetModifiers, isPublic, isStatic, isVolatilepublic JavassistMethodInfo(SignatureKey signatureKey, AnnotationHelper annotationHelper, JavassistTypeInfo typeInfo, javassist.CtMethod ctMethod)
annotationHelper - the annotation helpertypeInfo - the type infoctMethod - the methodpublic String getName()
MethodInfogetName in interface MethodInfogetName in class JavassistAnnotatedParameterInfopublic TypeInfo getReturnType()
MethodInfogetReturnType in interface MethodInfopublic Object invoke(Object target, Object[] args) throws Throwable
MethodInfoinvoke in interface MethodInfotarget - the targetargs - the argumentsThrowable - for any errorprotected int getHashCode()
getHashCode in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void executeCommand(MutableMethodInfoCommand mmc)
MutableMethodInfoexecuteCommand in interface MutableMethodInfopublic javassist.CtMethod getCtMethod()
public void setName(String name)
MutableMethodInfosetName in interface MutableMethodInfopublic void setReturnType(String returnType)
MutableMethodInfosetReturnType in interface MutableMethodInfopublic void setReturnType(ClassInfo returnType)
MutableMethodInfosetReturnType in interface MutableMethodInfopublic int getNumberParameters()
getNumberParameters in interface MethodInfoInternalCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.