|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JOperandInput
The JOperandInput interface provides for reading operands from a bytecode stream and reconstructing from them data in any Java primitives types.
JInstruction| Method Summary | |
|---|---|
void |
fillInput(byte[] bytecode,
int offset,
int length)
Reads up length bytes in the specified array from the offset index in order to be parsed by this JOperandInput. |
byte |
readByte()
Reads a byte from the byte code stream. |
int |
readInt()
Reads an integer from the byte code stream. |
short |
readShort()
Reads a short integer from the byte code stream. |
int |
readUnsignedByte()
Reads an unsigned byte from the byte code stream. |
int |
skipNullBytes()
Skips the padding bytes following the lookupswitch and tableswitch instruction. |
| Method Detail |
|---|
byte readByte()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during the reading
of the byte code
int readUnsignedByte()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during the reading
of the byte code
short readShort()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during the reading
of the byte code
int readInt()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during the reading
of the byte code
int skipNullBytes()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during the reading
of the byte code
void fillInput(byte[] bytecode,
int offset,
int length)
bytecode - the buffer which operands are readoffset - the offset from which the operands are readlength - the number of bytes to be read in the
bytecode array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||