- java.lang.Object
-
- de.carne.mcd.instruction.InstructionIndex.LookupResult
-
- Enclosing class:
- InstructionIndex
public static final class InstructionIndex.LookupResult extends java.lang.ObjectIndex lookup result.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(long ip, MCDInputBuffer in, MCDOutputBuffer out)Invokes the Instruction.decode(long, InstructionOpcode, MCDInputBuffer, MCDOutputBuffer) function for this lookup result.Instructioninstruction()Gets the matching Instruction of the lookup.InstructionOpcodeopcode()Gets the matching InstructionOpcode of the lookup.java.lang.StringtoString()
-
-
-
Method Detail
-
opcode
public InstructionOpcode opcode()
Gets the matching InstructionOpcode of the lookup.- Returns:
- the matching InstructionOpcode of the lookup.
-
instruction
public Instruction instruction()
Gets the matching Instruction of the lookup.- Returns:
- the matching Instruction of the lookup.
-
decode
public void decode(long ip, MCDInputBuffer in, MCDOutputBuffer out) throws java.io.IOExceptionInvokes the Instruction.decode(long, InstructionOpcode, MCDInputBuffer, MCDOutputBuffer) function for this lookup result.- Parameters:
ip- the current instruction pointer.in- the MCDInputBuffer to read any additional instruction data from.out- the MCDOutputBuffer to decode to.- Throws:
java.io.IOException- if an I/O error occurs.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-