void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: _arg = in.readUnsignedByte(); break; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: _arg = in.readUnsignedShort(); } }
void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: _arg = in.readUnsignedByte(); break; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: _arg = in.readUnsignedShort(); } }
void write(DataOutput out) throws IOException { super.write(out); switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: out.writeByte(_arg); break; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: out.writeShort(_arg); break; } }
void write(DataOutput out) throws IOException { super.write(out); switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: out.writeByte(_arg); break; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: out.writeShort(_arg); break; } }
void read(Instruction orig) { super.read(orig); ConstantInstruction ci = (ConstantInstruction) orig; calculateOpcode(ci.getValue(), Class.class.getName().equals(ci.getTypeName()), ci.getOpcode() == Constants.LDCW); }
void read(Instruction orig) { super.read(orig); ConstantInstruction ci = (ConstantInstruction) orig; calculateOpcode(ci.getValue(), Class.class.getName().equals(ci.getTypeName()), ci.getOpcode() == Constants.LDCW); }
public String getTypeName() { int opcode = getOpcode(); switch (opcode) { case Constants.NOP:
public String getTypeName() { int opcode = getOpcode(); switch (opcode) { case Constants.NOP:
int getLength() { switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: return super.getLength() + 1; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: return super.getLength() + 2; default: return super.getLength(); } }
int getLength() { switch (getOpcode()) { case Constants.BIPUSH: case Constants.LDC: return super.getLength() + 1; case Constants.SIPUSH: case Constants.LDCW: case Constants.LDC2W: return super.getLength() + 2; default: return super.getLength(); } }
int opcode = getOpcode(); switch (opcode) { case Constants.NOP:
int opcode = getOpcode(); switch (opcode) { case Constants.NOP: