Methods Summary |
---|
int | currentPC()Return the index of the next instruction to decode
return currPc;
|
byte | getByte()Get a single byte from the byte code stream
if (!more())
throw new InsnError("out of byte codes");//NOI18N
return byteCodes[currPc++];
|
int | getInt()Get an int from the byte code stream
byte byte1 = byteCodes[currPc++];
byte byte2 = byteCodes[currPc++];
byte byte3 = byteCodes[currPc++];
byte byte4 = byteCodes[currPc++];
return (byte1 << 24) | ((byte2 & 0xff) << 16) |
((byte3 & 0xff) << 8) | (byte4 & 0xff);
|
int | getShort()Get a short from the byte code stream
byte byte1 = byteCodes[currPc++];
byte byte2 = byteCodes[currPc++];
return (byte1 << 8) | (byte2 & 0xff);
|
InsnTarget | getTarget(int targ)Get the canonical InsnTarget instance for the specified
pc within the method.
return codeEnv.getTarget(targ);
|
int | getUByte()Get a single unsigned byte from the byte code stream
return getByte() & 0xff;
|
int | getUShort()Get an unsigned short from the byte code stream
return getShort() & 0xffff;
|
boolean | more()Are there more byte codes to decode?
return currPc < byteCodes.length;
|
ConstantPool | pool()Get the constant pool which applies to the method being decoded
return codeEnv.pool();
|