< prev index next >

src/java.base/share/classes/com/sun/java/util/jar/pack/Code.java

Print this page




  45     public Class.Method getMethod() {
  46         return m;
  47     }
  48     public Class thisClass() {
  49         return m.thisClass();
  50     }
  51     public Package getPackage() {
  52         return m.thisClass().getPackage();
  53     }
  54 
  55     public ConstantPool.Entry[] getCPMap() {
  56         return m.getCPMap();
  57     }
  58 
  59     private static final ConstantPool.Entry[] noRefs = ConstantPool.noRefs;
  60 
  61     // The following fields are used directly by the ClassReader, etc.
  62     int max_stack;
  63     int max_locals;
  64 
  65     ConstantPool.Entry handler_class[] = noRefs;
  66     int handler_start[] = noInts;
  67     int handler_end[] = noInts;
  68     int handler_catch[] = noInts;
  69 
  70     byte[] bytes;
  71     Fixups fixups;  // reference relocations, if any are required
  72     Object insnMap; // array of instruction boundaries
  73 
  74     int getLength() { return bytes.length; }
  75 
  76     int getMaxStack() {
  77         return max_stack;
  78     }
  79     void setMaxStack(int ms) {
  80         max_stack = ms;
  81     }
  82 
  83     int getMaxNALocals() {
  84         int argsize = m.getArgumentSize();
  85         return max_locals - argsize;
  86     }
  87     void setMaxNALocals(int ml) {
  88         int argsize = m.getArgumentSize();




  45     public Class.Method getMethod() {
  46         return m;
  47     }
  48     public Class thisClass() {
  49         return m.thisClass();
  50     }
  51     public Package getPackage() {
  52         return m.thisClass().getPackage();
  53     }
  54 
  55     public ConstantPool.Entry[] getCPMap() {
  56         return m.getCPMap();
  57     }
  58 
  59     private static final ConstantPool.Entry[] noRefs = ConstantPool.noRefs;
  60 
  61     // The following fields are used directly by the ClassReader, etc.
  62     int max_stack;
  63     int max_locals;
  64 
  65     ConstantPool.Entry[] handler_class = noRefs;
  66     int[] handler_start = noInts;
  67     int[] handler_end = noInts;
  68     int[] handler_catch = noInts;
  69 
  70     byte[] bytes;
  71     Fixups fixups;  // reference relocations, if any are required
  72     Object insnMap; // array of instruction boundaries
  73 
  74     int getLength() { return bytes.length; }
  75 
  76     int getMaxStack() {
  77         return max_stack;
  78     }
  79     void setMaxStack(int ms) {
  80         max_stack = ms;
  81     }
  82 
  83     int getMaxNALocals() {
  84         int argsize = m.getArgumentSize();
  85         return max_locals - argsize;
  86     }
  87     void setMaxNALocals(int ml) {
  88         int argsize = m.getArgumentSize();


< prev index next >