public static void skipAttributes(DataInputFullStream in) throws IOException { int length = in.readUnsignedShort(); for (int i = 0; i < length; i++) { in.discard(2); in.discard(in.readInt()); } }
protected StructGeneralAttribute readAttribute(DataInputFullStream in, ConstantPool pool, String name) throws IOException { StructGeneralAttribute attribute = StructGeneralAttribute.createAttribute(name); int length = in.readInt(); if (attribute == null) { in.discard(length); } else { attribute.initContent(in, pool); } return attribute; } }
case opc_jsr_w: opcode = opcode == opc_jsr_w ? opc_jsr : opc_goto; operands.add(in.readInt()); group = GROUP_JUMP; i += 4; in.discard((4 - (i + 1) % 4) % 4); i += ((4 - (i + 1) % 4) % 4); // padding operands.add(in.readInt()); i += 4; int low = in.readInt(); operands.add(low); i += 4; int high = in.readInt(); operands.add(high); i += 4; operands.add(in.readInt()); i += 4; in.discard((4 - (i + 1) % 4) % 4); i += ((4 - (i + 1) % 4) % 4); // padding operands.add(in.readInt()); i += 4; int npairs = in.readInt(); operands.add(npairs); i += 4; operands.add(in.readInt());
@Override protected StructGeneralAttribute readAttribute(DataInputFullStream in, ConstantPool pool, String name) throws IOException { if (StructGeneralAttribute.ATTRIBUTE_CODE.getName().equals(name)) { if (!classStruct.isOwn()) { // skip code in foreign classes in.discard(8); in.discard(in.readInt()); in.discard(8 * in.readUnsignedShort()); } else { containsCode = true; in.discard(6); localVariables = in.readUnsignedShort(); codeLength = in.readInt(); in.discard(codeLength); int excLength = in.readUnsignedShort(); in.discard(excLength * 8); codeFullLength = codeLength + excLength * 8 + 2; } codeAttributes = readAttributes(in, pool); return null; } return super.readAttribute(in, pool, name); }
String attrName = pool.getPrimitiveConstant(attrNameIndex).getString(); if (!StructGeneralAttribute.ATTRIBUTE_CODE.getName().equals(attrName)) { in.discard(in.readInt()); continue;
protected StructGeneralAttribute readAttribute(DataInputFullStream in, ConstantPool pool, String name) throws IOException { StructGeneralAttribute attribute = StructGeneralAttribute.createAttribute(name); int length = in.readInt(); if (attribute == null) { in.discard(length); } else { attribute.initContent(in, pool); } return attribute; } }
public static void skipAttributes(DataInputFullStream in) throws IOException { int length = in.readUnsignedShort(); for (int i = 0; i < length; i++) { in.discard(2); in.discard(in.readInt()); } }
case opc_jsr_w: opcode = opcode == opc_jsr_w ? opc_jsr : opc_goto; operands.add(in.readInt()); group = GROUP_JUMP; i += 4; in.discard((4 - (i + 1) % 4) % 4); i += ((4 - (i + 1) % 4) % 4); // padding operands.add(in.readInt()); i += 4; int low = in.readInt(); operands.add(low); i += 4; int high = in.readInt(); operands.add(high); i += 4; operands.add(in.readInt()); i += 4; in.discard((4 - (i + 1) % 4) % 4); i += ((4 - (i + 1) % 4) % 4); // padding operands.add(in.readInt()); i += 4; int npairs = in.readInt(); operands.add(npairs); i += 4; operands.add(in.readInt());
@Override protected StructGeneralAttribute readAttribute(DataInputFullStream in, ConstantPool pool, String name) throws IOException { if (StructGeneralAttribute.ATTRIBUTE_CODE.equals(name)) { if (!classStruct.isOwn()) { // skip code in foreign classes in.discard(8); in.discard(in.readInt()); in.discard(8 * in.readUnsignedShort()); } else { containsCode = true; in.discard(6); localVariables = in.readUnsignedShort(); codeLength = in.readInt(); in.discard(codeLength); int excLength = in.readUnsignedShort(); in.discard(excLength * 8); codeFullLength = codeLength + excLength * 8 + 2; } codeAttributes = readAttributes(in, pool); return null; } return super.readAttribute(in, pool, name); }
String attrName = pool.getPrimitiveConstant(attrNameIndex).getString(); if (!StructGeneralAttribute.ATTRIBUTE_CODE.equals(attrName)) { in.discard(in.readInt()); continue;