org.apache.axis.utils.bytecode
public class ParamReader extends ClassReader
This does not work for inherited methods. To obtain parameter names for inherited methods, you must use a paramReader for the class that originally declared the method.
don't get tricky, it's the bare minimum. Instances of this class are not threadsafe -- don't share them.
Constructor Summary | |
---|---|
ParamReader(Class c)
process a class file, given it's class. | |
ParamReader(byte[] b)
process the given class bytes directly. |
Method Summary | |
---|---|
String[] | getParameterNames(Constructor ctor)
return the names of the declared parameters for the given constructor.
|
String[] | getParameterNames(Method method)
return the names of the declared parameters for the given method.
|
protected String[] | getParameterNames(Member member, Class[] paramTypes) |
void | readCode() |
void | readLocalVariableTable()
this is invoked when a LocalVariableTable attribute is encountered. |
Parameters: c
Throws: IOException
Parameters: b
Throws: IOException
Parameters: ctor
Returns: String[] array of names, one per parameter, or null
Parameters: method
Returns: String[] array of names, one per parameter, or null
Throws: IOException