public class BytecodeMethodInfo extends BytecodeBehaviourInfo implements MethodInfo, MethodInfoInternal
MutableMethodInfo
.MutableMethodInfo
,
Serialized Formbehaviour, exceptionTypes, parameters, parameterTypes, typeInfo
annotationHelper, 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 |
---|
BytecodeMethodInfo(AnnotationHelper annotationHelper,
BytecodeTypeInfo typeInfo,
MethodBytes method)
Create a new JavassistMethodInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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 |
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, setupParameterAnnotations
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getExceptionTypes, getParameters, getParameterTypes
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
getDeclaringClass
getModifiers, isPublic, isStatic, isVolatile
public BytecodeMethodInfo(AnnotationHelper annotationHelper, BytecodeTypeInfo typeInfo, MethodBytes method)
annotationHelper
- the annotation helpertypeInfo
- the type infomethod
- the methodpublic String getName()
MethodInfo
getName
in interface MethodInfo
getName
in class BytecodeBehaviourInfo
public int getNumberParameters()
getNumberParameters
in interface MethodInfoInternal
public TypeInfo getReturnType()
MethodInfo
getReturnType
in interface MethodInfo
public Object invoke(Object target, Object[] args) throws Throwable
MethodInfo
invoke
in interface MethodInfo
target
- the targetargs
- the argumentsThrowable
- for any errorprotected int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
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
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.