@Nonnull private BuilderInstruction21c newBuilderInstruction21c(@Nonnull Instruction21c instruction) { return new BuilderInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), convertReference(instruction.getReference())); }
@Nonnull private BuilderInstruction21c newBuilderInstruction21c(@Nonnull Instruction21c instruction) { return new BuilderInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
@Nonnull private BuilderInstruction21c newBuilderInstruction21c(@Nonnull Instruction21c instruction) { return new BuilderInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
@Nonnull private BuilderInstruction21c newBuilderInstruction21c(@Nonnull Instruction21c instruction) { return new BuilderInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
@Nonnull private BuilderInstruction21c newBuilderInstruction21c(@Nonnull Instruction21c instruction) { return new BuilderInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), convertReference(instruction.getReference())); }
public void write(@Nonnull Instruction21c instruction) { try { writer.write(instruction.getOpcode().value); writer.write(instruction.getRegisterA()); writer.writeUshort(getReferenceIndex(instruction)); } catch (IOException ex) { throw new RuntimeException(ex); } }
public static ImmutableInstruction21c of(Instruction21c instruction) { if (instruction instanceof ImmutableInstruction21c) { return (ImmutableInstruction21c)instruction; } return new ImmutableInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
public static ImmutableInstruction21c of(Instruction21c instruction) { if (instruction instanceof ImmutableInstruction21c) { return (ImmutableInstruction21c)instruction; } return new ImmutableInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
public static ImmutableInstruction21c of(Instruction21c instruction) { if (instruction instanceof ImmutableInstruction21c) { return (ImmutableInstruction21c)instruction; } return new ImmutableInstruction21c( instruction.getOpcode(), instruction.getRegisterA(), instruction.getReference()); }
public void write(@Nonnull Instruction21c instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeUshort(getReferenceIndex(instruction)); } catch (IOException ex) { throw new RuntimeException(ex); } }
public void write(@Nonnull Instruction21c instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeUshort(getReferenceIndex(instruction)); } catch (IOException ex) { throw new RuntimeException(ex); } }
Assert.assertEquals(Opcode.SGET_OBJECT, instruction.getOpcode()); FieldReference field = (FieldReference)instruction.getReference(); Assert.assertEquals(classDef.getType(), field.getDefiningClass()); Assert.assertEquals(Opcode.SGET_OBJECT, instruction.getOpcode()); field = (FieldReference)instruction.getReference(); Assert.assertEquals(classDef.getType(), field.getDefiningClass()); Assert.assertEquals(Opcode.SGET_OBJECT, instruction.getOpcode()); field = (FieldReference)instruction.getReference(); Assert.assertEquals(classDef.getType(), field.getDefiningClass());