|
|||||||||||
| 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.AnnotationHolder
org.jboss.reflect.plugins.MethodInfoImpl
Method info
| Field Summary | |
protected ClassInfo |
declaringClass
The declaring class |
protected ClassInfo[] |
exceptionTypes
The exception types |
protected int |
hash
The hash code |
protected Method |
method
The method |
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 |
| 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 | |
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,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new MethodInfo. |
|
| Method Summary | |
protected void |
calculateHash()
Calculate the hash code |
boolean |
equals(Object obj)
|
ClassInfo |
getDeclaringClass()
Get the declaring class |
ClassInfo[] |
getExceptionTypes()
Get the exception types |
Method |
getMethod()
Get the method |
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()
|
boolean |
isPublic()
Whether it is public |
boolean |
isStatic()
Whether it is static |
void |
setMethod(Method method)
Set the method |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
| Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder |
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations |
| Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, 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, isAnnotationPresent |
| Methods inherited from interface org.jboss.util.JBossInterface |
clone, toShortString, toShortString |
| Field Detail |
protected String name
protected Method method
protected ClassInfo declaringClass
protected TypeInfo[] parameterTypes
protected ParameterInfo[] parameters
protected ClassInfo[] exceptionTypes
protected int modifiers
protected TypeInfo returnType
protected int hash
| Constructor Detail |
public MethodInfoImpl()
public MethodInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo returnType,
TypeInfo[] parameterTypes,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
annotations - the annotationsname - the method namereturnType - the return typeparameterTypes - the parameter typesexceptionTypes - the exception typesmodifiers - the modifiersdeclaring - the declaring class
public 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 class| Method Detail |
public void setMethod(Method method)
method - the methodpublic String getName()
MethodInfo
getName in interface MethodInfopublic Method getMethod()
MethodInfo
getMethod in interface MethodInfopublic ClassInfo getDeclaringClass()
MethodInfo
getDeclaringClass in interface MethodInfopublic TypeInfo[] getParameterTypes()
MethodInfo
getParameterTypes in interface MethodInfopublic ParameterInfo[] getParameters()
MethodInfo
getParameters in interface MethodInfopublic ClassInfo[] getExceptionTypes()
MethodInfo
getExceptionTypes in interface MethodInfopublic TypeInfo getReturnType()
MethodInfo
getReturnType in interface MethodInfopublic int getModifiers()
ModifierInfo
getModifiers in interface ModifierInfopublic boolean isStatic()
ModifierInfo
isStatic in interface ModifierInfopublic boolean isPublic()
ModifierInfo
isPublic in interface ModifierInfoprotected void toString(org.jboss.util.JBossStringBuilder buffer)
public boolean equals(Object obj)
public int hashCode()
protected void calculateHash()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||