short count = dis.readShort();
List<Method> methods = new ArrayList<Method>();
for (int i = 0; i < count; i++) {
Method curMethod = new Method();
short accessFlags = dis.readShort();
short nameIndex = dis.readShort();
short descIndex = dis.readShort();
String name = cpInfo.getUtf8String(nameIndex);
String descriptor = cpInfo.getUtf8String(descIndex);
curMethod.setName(name);
curMethod.setSignature(descriptor);
curMethod.setQualifier(accessFlags);
short attrCount = dis.readShort();
for (int j = 0; j < attrCount; j++) {
readMethodAttributes(curMethod, dis, cpInfo);
}
if (curMethod.getVariableTable() == null) {
// It was not decompiled with variableTable- Hence setting it
// using symboltable
curMethod.initializeSymbolTable();
}
methods.add(curMethod);
}
return methods;