org.apache.jdo.impl.enhancer.classfile
Class InsnReadEnv

java.lang.Object
  extended byorg.apache.jdo.impl.enhancer.classfile.InsnReadEnv

class InsnReadEnv
extends java.lang.Object

Environment for decoding byte codes into instructions


Field Summary
private  byte[] byteCodes
           
private  CodeEnv codeEnv
           
private  int currPc
           
 
Constructor Summary
(package private) InsnReadEnv(byte[] bytes, CodeEnv codeEnv)
          Constructor
 
Method Summary
(package private)  int currentPC()
          Return the index of the next instruction to decode
(package private)  byte getByte()
          Get a single byte from the byte code stream
(package private)  int getInt()
          Get an int from the byte code stream
(package private)  int getShort()
          Get a short from the byte code stream
(package private)  InsnTarget getTarget(int targ)
          Get the canonical InsnTarget instance for the specified pc within the method.
(package private)  int getUByte()
          Get a single unsigned byte from the byte code stream
(package private)  int getUShort()
          Get an unsigned short from the byte code stream
(package private)  boolean more()
          Are there more byte codes to decode?
(package private)  ConstantPool pool()
          Get the constant pool which applies to the method being decoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codeEnv

private CodeEnv codeEnv

byteCodes

private byte[] byteCodes

currPc

private int currPc
Constructor Detail

InsnReadEnv

InsnReadEnv(byte[] bytes,
            CodeEnv codeEnv)
Constructor

Method Detail

currentPC

int currentPC()
Return the index of the next instruction to decode


more

boolean more()
Are there more byte codes to decode?


getByte

byte getByte()
Get a single byte from the byte code stream


getUByte

int getUByte()
Get a single unsigned byte from the byte code stream


getShort

int getShort()
Get a short from the byte code stream


getUShort

int getUShort()
Get an unsigned short from the byte code stream


getInt

int getInt()
Get an int from the byte code stream


pool

ConstantPool pool()
Get the constant pool which applies to the method being decoded


getTarget

InsnTarget getTarget(int targ)
Get the canonical InsnTarget instance for the specified pc within the method.