|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableMethodInfo
A MutableMethod Info.
Field Summary |
---|
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 |
Method Summary | |
---|---|
void |
executeCommand(MutableMethodInfoCommand mmc)
TODO: something similar to CtBehavior.instrument(...) |
void |
setBody(Body body)
The source text of the method body |
void |
setExceptions(ClassInfo[] exceptions)
A list of the exception types |
void |
setExceptions(String[] exceptions)
A list of the exception types |
void |
setModifier(ModifierInfo mi)
Set modifier If not set it will default to public (non-static) |
void |
setName(String name)
Method name |
void |
setParameters(ClassInfo[] parameters)
A list of the parameter types |
void |
setParameters(String[] parameters)
A list of the parameter types |
void |
setReturnType(ClassInfo returnType)
Set type of the returned value |
void |
setReturnType(String returnType)
Set type of the returned value |
Methods inherited from interface org.jboss.reflect.spi.MethodInfo |
---|
getExceptionTypes, getName, getParameters, getParameterTypes, getReturnType, invoke |
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo |
---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString, toShortString |
Methods inherited from interface org.jboss.reflect.spi.MemberInfo |
---|
getDeclaringClass |
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo |
---|
getModifiers, isPublic, isStatic, isVolatile |
Method Detail |
---|
void setModifier(ModifierInfo mi)
mi
- void setReturnType(String returnType)
returnType
- void setReturnType(ClassInfo returnType)
returnType
- void setName(String name)
name
- void setBody(Body body)
body
- void setParameters(String[] parameters)
parameters
- void setParameters(ClassInfo[] parameters)
parameters
- void setExceptions(String[] exceptions)
exceptions
- void setExceptions(ClassInfo[] exceptions)
exceptions
- void executeCommand(MutableMethodInfoCommand mmc)
mmc
-
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |