| java.lang.Object java.io.InputStream java.io.ByteArrayInputStream org.apache.axis2.description.java2wsdl.bytecode.ClassReader
All known Subclasses: org.apache.axis2.description.java2wsdl.bytecode.ParamReader,
ClassReader | public class ClassReader extends ByteArrayInputStream (Code) | | 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.
|
ClassReader | protected ClassReader(byte buf, Map attrMethods)(Code) | | |
findAttributeReaders | protected static Map findAttributeReaders(Class c)(Code) | | |
getBytes | protected static byte[] getBytes(Class c) throws IOException(Code) | | Loads the bytecode for a given class, by using the class's defining
classloader and assuming that for a class named P.C, the bytecodes are
in a resource named /P/C.class.
Parameters: c - the class of interest Returns a byte array containing the bytecode throws: IOException - |
readAttributes | final protected void readAttributes() throws IOException(Code) | | Reads an attributes array. The elements of a class file that
can contain attributes are: fields, methods, the class itself,
and some other types of attributes.
|
readInt | final protected int readInt()(Code) | | Returns the next signed 32 bit value. |
readShort | final protected int readShort()(Code) | | Returns the next unsigned 16 bit value. |
resolveNameAndType | final protected NameAndType resolveNameAndType(int i) throws IOException(Code) | | |
skipFully | protected void skipFully(int n) throws IOException(Code) | | Skips n bytes in the input stream.
|
|
|