public void load(ClazzInputStream cis) throws IOException, ClazzException {
    attributeLength = (int) cis.readU4();

    int local_variable_table_type_length = cis.readU2();
    local_variable_type_table = new LocalSignedVariable[local_variable_table_type_length];
    for (int i = 0; i < local_variable_table_type_length; i++) {
      local_variable_type_table[i] = new LocalSignedVariable();
      local_variable_type_table[i].start_pc = cis.readU2();
      local_variable_type_table[i].length = cis.readU2();
      int name_index = cis.readU2();
      local_variable_type_table[i].name = (CONSTANT_Utf8) clazz.getConstant_pool()[name_index];
      int signature_index = cis.readU2();
      local_variable_type_table[i].signature =
          (CONSTANT_Utf8) clazz.getConstant_pool()[signature_index];
      local_variable_type_table[i].index = cis.readU2();
    }
  }
Ejemplo n.º 2
0
  public void load(ClazzInputStream cis, Clazz clazz) throws IOException, ClazzException {
    cis.readU4(); // attribute length

    signature = ((CONSTANT_Utf8_info) clazz.getConstant_pool()[cis.readU2()]).getString();
  }