Constructor and Description |
---|
ConstantPoolTable(byte[] b)
Constructor; supply class bytecode.
|
ConstantPoolTable(InputStream in)
Constructor; supply input stream to bytecode.
|
Modifier and Type | Method and Description |
---|---|
int |
get(int idx)
Return the given table entry.
|
int |
getEndIndex()
Return the index into the bytecode of the end of the constant pool.
|
static int |
getEndIndex(byte[] b)
Allows static computation of the byte index after the constant
pool without caching constant pool information.
|
static int |
readByte(byte[] b,
int idx)
Read a byte value at the given offset into the given bytecode.
|
int |
readByte(int idx)
Read a byte value at the given offset.
|
static int |
readInt(byte[] b,
int idx)
Read an int value at the given offset into the given bytecode.
|
int |
readInt(int idx)
Read an int value at the given offset.
|
static long |
readLong(byte[] b,
int idx)
Read a long value at the given offset into the given bytecode.
|
long |
readLong(int idx)
Read a long value at the given offset.
|
static String |
readString(byte[] b,
int idx)
Read a UTF-8 string value at the given offset into the given bytecode.
|
String |
readString(int idx)
Read a UTF-8 string value at the given offset.
|
static int |
readUnsignedShort(byte[] b,
int idx)
Read an unsigned short value at the given offset into the given bytecode.
|
int |
readUnsignedShort(int idx)
Read an unsigned short value at the given offset.
|
public ConstantPoolTable(byte[] b)
public ConstantPoolTable(InputStream in) throws IOException
IOException
public static int getEndIndex(byte[] b)
public static int readByte(byte[] b, int idx)
public static int readUnsignedShort(byte[] b, int idx)
public static int readInt(byte[] b, int idx)
public static long readLong(byte[] b, int idx)
public static String readString(byte[] b, int idx)
public int getEndIndex()
public int get(int idx)
public int readByte(int idx)
public int readUnsignedShort(int idx)
public int readInt(int idx)
public long readLong(int idx)
public String readString(int idx)
Copyright © 2002–2019. All rights reserved.