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 and Description |
|---|
ParamReader(byte[] b)
Processes the given class bytes directly.
|
ParamReader(java.lang.Class c)
Processes a class file, given it's class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getParameterNames(java.lang.reflect.Constructor ctor)
Returns the names of the declared parameters for the given constructor.
|
protected java.lang.String[] |
getParameterNames(java.lang.reflect.Member member,
java.lang.Class[] paramTypes) |
java.lang.String[] |
getParameterNames(java.lang.reflect.Method method)
Returns the names of the declared parameters for the given method.
|
void |
readCode()
Reads a code attribute.
|
void |
readLocalVariableTable()
This is invoked when a LocalVariableTable attribute is encountered.
|
findAttributeReaders, getBytes, getSignature, readAttributes, readCpool, readInt, readShort, resolveClass, resolveField, resolveMethod, resolveNameAndType, resolveUtf8, skipAttributes, skipFullypublic ParamReader(java.lang.Class c) throws java.io.IOException
c - java.io.IOExceptionpublic ParamReader(byte[] b) throws java.io.IOException
b - java.io.IOExceptionpublic void readCode() throws java.io.IOException
ClassReaderreadCode in class ClassReaderjava.io.IOExceptionpublic java.lang.String[] getParameterNames(java.lang.reflect.Constructor ctor)
ctor - public java.lang.String[] getParameterNames(java.lang.reflect.Method method)
method - protected java.lang.String[] getParameterNames(java.lang.reflect.Member member, java.lang.Class[] paramTypes)
public void readLocalVariableTable() throws java.io.IOException
java.io.IOExceptionCopyright © 2019. All rights reserved.