Module de.carne.mcd.jvmdecoder
Class BytecodeInstruction
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.bytecode.BytecodeInstruction
-
- All Implemented Interfaces:
de.carne.mcd.instruction.Instruction
public class BytecodeInstruction extends java.lang.Object implements de.carne.mcd.instruction.InstructionA single bytecode instruction with a variable number of operands.
-
-
Constructor Summary
Constructors Constructor Description BytecodeInstruction(java.lang.String mnemonic, OperandType[] operands)Constructs a new BytecodeInstruction instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(long ip, de.carne.mcd.instruction.InstructionOpcode opcode, de.carne.mcd.io.MCDInputBuffer in, de.carne.mcd.io.MCDOutputBuffer out)voidsave(java.io.DataOutput out)
-
-
-
Constructor Detail
-
BytecodeInstruction
public BytecodeInstruction(java.lang.String mnemonic, OperandType[] operands)Constructs a new BytecodeInstruction instance.- Parameters:
mnemonic- the instruction mnemonic to use.operands- the instruction operands.
-
-
Method Detail
-
save
public void save(java.io.DataOutput out) throws java.io.IOException- Specified by:
savein interfacede.carne.mcd.instruction.Instruction- Throws:
java.io.IOException
-
decode
public void decode(long ip, de.carne.mcd.instruction.InstructionOpcode opcode, de.carne.mcd.io.MCDInputBuffer in, de.carne.mcd.io.MCDOutputBuffer out) throws java.io.IOException- Specified by:
decodein interfacede.carne.mcd.instruction.Instruction- Throws:
java.io.IOException
-
-