|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sssw.jbroker.web.portable.annotation.MethodInfo
Objects of type MethodInfo
can be used to store annotations
for a java.lang.reflect.Method
object.
ClassInfo
Constructor Summary | |
MethodInfo(Method method)
Construct a method information object for a given method. |
Method Summary | |
ClassInfo |
getExceptionTypeInfo(Class exception)
Get a ClassInfo object for a given exception class. |
Method |
getMethodObject()
Get the method object for which this MethodInfo object
manages properties. |
int |
getParameterCount()
Get the number of parameters for this method |
ParamInfo |
getParameterTypeInfo(int index)
Get a ParamInfo object for a given index. |
Object |
getProperty(String key)
Get a property for this class |
ParamInfo |
getReturnTypeInfo()
Get a ParamInfo object for the method's return class. |
void |
setProperty(String key,
Object value)
Set a property for this class |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodInfo(Method method)
method
- the methodMethod Detail |
public Method getMethodObject()
MethodInfo
object
manages properties.
public Object getProperty(String key)
key
- the property name
public void setProperty(String key, Object value)
key
- the property namevalue
- the property valuepublic int getParameterCount()
public ParamInfo getParameterTypeInfo(int index)
ParamInfo
object for a given index. The order of
parameters is the same as when calling the getParameterTypes
method on the java.lang.reflect.Method
object.
index
- the parameter index
ParamInfo
object for the parameter class at the
specified index
ArrayIndexOutOfBoundsException
- if parameter index is invalidpublic ParamInfo getReturnTypeInfo()
ParamInfo
object for the method's return class.
ParamInfo
object for the return classpublic ClassInfo getExceptionTypeInfo(Class exception)
ClassInfo
object for a given exception class.
exception
- the exception class
ClassInfo
object for the exception class or
null if the specified exception was not declared on this method
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |