|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.ByteArrayInputStream
org.apache.axis2.description.java2wsdl.bytecode.ClassReader
org.apache.axis2.description.java2wsdl.bytecode.ParamReader
public class ParamReader
This is the class file reader for obtaining the parameter names for declared methods in a class. The class must have debugging attributes for us to obtain this information.
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.
Field Summary |
---|
Fields inherited from class java.io.ByteArrayInputStream |
---|
buf, count, mark, pos |
Constructor Summary | |
---|---|
ParamReader(byte[] b)
Processes the given class bytes directly. |
|
ParamReader(Class c)
Processes a class file, given it's class. |
Method Summary | |
---|---|
String[] |
getParameterNames(Constructor ctor)
Returns the names of the declared parameters for the given constructor. |
protected String[] |
getParameterNames(Member member,
Class[] paramTypes)
|
String[] |
getParameterNames(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. |
Methods inherited from class org.apache.axis2.description.java2wsdl.bytecode.ClassReader |
---|
findAttributeReaders, getBytes, getSignature, readAttributes, readCpool, readInt, readShort, resolveClass, resolveField, resolveMethod, resolveNameAndType, resolveUtf8, skipAttributes, skipFully |
Methods inherited from class java.io.ByteArrayInputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.io.InputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamReader(Class c) throws IOException
c
-
IOException
public ParamReader(byte[] b) throws IOException
b
-
IOException
Method Detail |
---|
public void readCode() throws IOException
ClassReader
readCode
in class ClassReader
IOException
public String[] getParameterNames(Constructor ctor)
ctor
-
public String[] getParameterNames(Method method)
method
-
protected String[] getParameterNames(Member member, Class[] paramTypes)
public void readLocalVariableTable() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |