public class ClassReader extends ByteArrayInputStream
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.
buf, count, mark, pos| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
ClassReader(byte[] buf,
Map attrMethods) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected static Map |
findAttributeReaders(Class c) |
protected static byte[] |
getBytes(Class c)
load 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.
|
protected static String |
getSignature(Member method,
Class[] paramTypes) |
protected void |
readAttributes()
read an attributes array.
|
void |
readCode()
read a code attribute
|
protected void |
readCpool() |
protected int |
readInt() |
protected int |
readShort() |
protected Class |
resolveClass(int i) |
protected Field |
resolveField(int i) |
protected Member |
resolveMethod(int index) |
protected org.apache.axis.utils.bytecode.ClassReader.NameAndType |
resolveNameAndType(int i) |
protected String |
resolveUtf8(int i) |
protected void |
skipAttributes() |
protected void |
skipFully(int n)
skip n bytes in the input stream.
|
available, close, mark, markSupported, read, read, reset, skipreadprotected ClassReader(byte[] buf,
Map attrMethods)
protected static byte[] getBytes(Class c) throws IOException
c - the class of interestIOExceptionprotected final int readShort()
protected final int readInt()
protected void skipFully(int n)
throws IOException
IOExceptionprotected final Member resolveMethod(int index) throws IOException, ClassNotFoundException, NoSuchMethodException
protected final Field resolveField(int i) throws IOException, ClassNotFoundException, NoSuchFieldException
protected final org.apache.axis.utils.bytecode.ClassReader.NameAndType resolveNameAndType(int i)
throws IOException
IOExceptionprotected final Class resolveClass(int i) throws IOException, ClassNotFoundException
protected final String resolveUtf8(int i) throws IOException
IOExceptionprotected final void readCpool()
throws IOException
IOExceptionprotected final void skipAttributes()
throws IOException
IOExceptionprotected final void readAttributes()
throws IOException
IOExceptionpublic void readCode()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.