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.
Constructor and Description |
---|
ParamReader(byte[] b)
process the given class bytes directly.
|
ParamReader(java.lang.Class c)
process a class file, given it's class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getParameterNames(java.lang.reflect.Constructor ctor)
return the names of the declared parameters for the given constructor.
|
java.lang.String[] |
getParameterNames(java.lang.reflect.Method method)
return the names of the declared parameters for the given method.
|
void |
readCode()
read a code attribute
|
void |
readLocalVariableTable()
this is invoked when a LocalVariableTable attribute is encountered.
|
public ParamReader(java.lang.Class c) throws java.io.IOException
c
- java.io.IOException
public ParamReader(byte[] b) throws java.io.IOException
b
- java.io.IOException
public void readCode() throws java.io.IOException
ClassReader
readCode
in class ClassReader
java.io.IOException
public java.lang.String[] getParameterNames(java.lang.reflect.Constructor ctor)
ctor
- public java.lang.String[] getParameterNames(java.lang.reflect.Method method)
method
- public void readLocalVariableTable() throws java.io.IOException
java.io.IOException