@Override public void initContent(DataInputFullStream data, ConstantPool pool) throws IOException { int len = data.readUnsignedByte(); if (len > 0) { paramAnnotations = new ArrayList<>(len); for (int i = 0; i < len; i++) { List<AnnotationExprent> annotations = StructAnnotationAttribute.parseAnnotations(pool, data); paramAnnotations.add(annotations); } } else { paramAnnotations = Collections.emptyList(); } }
@Override public void initContent(DataInputFullStream data, ConstantPool pool) throws IOException { int len = data.readUnsignedByte(); List<Entry> entries; if (len > 0) { entries = new ArrayList<>(len); for (int i = 0; i < len; i++) { int nameIndex = data.readUnsignedShort(); String name = nameIndex != 0 ? pool.getPrimitiveConstant(nameIndex).getString() : null; int access_flags = data.readUnsignedShort(); entries.add(new Entry(name, access_flags)); } } else { entries = Collections.emptyList(); } myEntries = Collections.unmodifiableList(entries); }
int opcode = in.readUnsignedByte(); int group = GROUP_GENERAL; opcode = in.readUnsignedByte(); case opc_ldc: case opc_newarray: operands.add(in.readUnsignedByte()); i++; break; operands.add(in.readUnsignedByte()); i++; operands.add(in.readUnsignedByte()); operands.add((int)in.readByte()); i += 2; case opc_invokeinterface: operands.add(in.readUnsignedShort()); operands.add(in.readUnsignedByte()); in.discard(1); group = GROUP_INVOCATION; case opc_multianewarray: operands.add(in.readUnsignedShort()); operands.add(in.readUnsignedByte()); i += 3; break;
switch (in.readUnsignedByte()) { case CodeConstants.CONSTANT_Utf8: in.readUTF();
@Override public void initContent(DataInputFullStream data, ConstantPool pool) throws IOException { int len = data.readUnsignedByte(); if (len > 0) { paramAnnotations = new ArrayList<>(len); for (int i = 0; i < len; i++) { List<AnnotationExprent> annotations = StructAnnotationAttribute.parseAnnotations(pool, data); paramAnnotations.add(annotations); } } else { paramAnnotations = Collections.emptyList(); } }
int opcode = in.readUnsignedByte(); int group = GROUP_GENERAL; opcode = in.readUnsignedByte(); case opc_ldc: case opc_newarray: operands.add(Integer.valueOf(in.readUnsignedByte())); i++; break; operands.add(in.readUnsignedByte()); i++; operands.add(in.readUnsignedByte()); operands.add(Integer.valueOf(in.readByte())); i += 2; case opc_invokeinterface: operands.add(in.readUnsignedShort()); operands.add(in.readUnsignedByte()); in.discard(1); group = GROUP_INVOCATION; case opc_multianewarray: operands.add(in.readUnsignedShort()); operands.add(in.readUnsignedByte()); i += 3; break;
switch (in.readUnsignedByte()) { case CodeConstants.CONSTANT_Utf8: in.readUTF();