public class MethodInfoImpl extends AnnotationHolder implements MethodInfo
| Modifier and Type | Field and Description |
|---|---|
protected ClassInfo |
declaringClass
The declaring class
|
protected ClassInfo[] |
exceptionTypes
The exception types
|
protected int |
hash
The hash code
|
protected int |
modifiers
The modifiers
|
protected String |
name
The method name
|
protected ParameterInfo[] |
parameters
The parameters
|
protected TypeInfo[] |
parameterTypes
The parameter types
|
protected TypeInfo |
returnType
The return type
|
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 |
|---|
MethodInfoImpl()
Create a new method info
|
MethodInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo returnType,
ParameterInfo[] parameters,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new MethodInfo.
|
MethodInfoImpl(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 |
calculateHash()
Calculate the hash code
|
boolean |
equals(Object obj) |
ClassInfo |
getDeclaringClass()
Get the declaring class
|
ClassInfo[] |
getExceptionTypes()
Get the exception types
|
int |
getModifiers()
Get the modifiers
|
String |
getName()
Get the method name
|
ParameterInfo[] |
getParameters()
Get the parameters
|
TypeInfo[] |
getParameterTypes()
Get the parameter types
|
TypeInfo |
getReturnType()
Get the return type
|
int |
hashCode() |
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) |
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentprotected String name
protected ClassInfo declaringClass
protected TypeInfo[] parameterTypes
protected ParameterInfo[] parameters
protected ClassInfo[] exceptionTypes
protected int modifiers
protected TypeInfo returnType
protected int hash
public MethodInfoImpl()
public MethodInfoImpl(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 MethodInfoImpl(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 String getName()
MethodInfogetName in interface MethodInfopublic ClassInfo getDeclaringClass()
MemberInfogetDeclaringClass in interface MemberInfopublic TypeInfo[] getParameterTypes()
MethodInfogetParameterTypes in interface MethodInfopublic ParameterInfo[] getParameters()
MethodInfogetParameters in interface MethodInfopublic ClassInfo[] getExceptionTypes()
MethodInfogetExceptionTypes in interface MethodInfopublic TypeInfo getReturnType()
MethodInfogetReturnType in interface MethodInfopublic int getModifiers()
ModifierInfogetModifiers in interface ModifierInfopublic boolean isStatic()
ModifierInfoisStatic in interface ModifierInfopublic boolean isPublic()
ModifierInfoisPublic in interface ModifierInfopublic boolean isVolatile()
ModifierInfoisVolatile in interface ModifierInfopublic Object invoke(Object target, Object[] args) throws Throwable
MethodInfoinvoke in interface MethodInfotarget - the targetargs - the argumentsThrowable - for any errorprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString 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.JBossObjectpublic int hashCode()
hashCode in class org.jboss.util.JBossObjectprotected void calculateHash()
Copyright © 2016 JBoss by Red Hat. All rights reserved.