Exemple #1
0
 Code_attribute(ClassReader cr, int name_index, int length)
     throws IOException, ConstantPoolException {
   super(name_index, length);
   max_stack = cr.readUnsignedShort();
   max_locals = cr.readUnsignedShort();
   code_length = cr.readInt();
   code = new byte[code_length];
   cr.readFully(code);
   exception_table_langth = cr.readUnsignedShort();
   exception_table = new Exception_data[exception_table_langth];
   for (int i = 0; i < exception_table_langth; i++) exception_table[i] = new Exception_data(cr);
   attributes = new Attributes(cr);
 }