Module de.carne.mcd.jvmdecoder
Interface OperandType
-
- All Known Implementing Classes:
ByteOperandType,IntOperandType,LookupswitchOperandDecoder,ShortOperandType,TableswitchOperandDecoder
public interface OperandTypeBase interface for all kinds of operand types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecode(int pc, de.carne.mcd.io.MCDInputBuffer buffer, de.carne.mcd.io.MCDOutputBuffer out)Decodes the operand.java.lang.Stringname()Gets the operand type's name.chartype()Gets the operand's type (B:byte, S:short, I:int).
-
-
-
Method Detail
-
type
char type()
Gets the operand's type (B:byte, S:short, I:int).- Returns:
- the operand's type (B:byte, S:short, I:int).
-
name
java.lang.String name()
Gets the operand type's name.- Returns:
- the operand type's name.
-
decode
void decode(int pc, de.carne.mcd.io.MCDInputBuffer buffer, de.carne.mcd.io.MCDOutputBuffer out) throws java.io.IOExceptionDecodes the operand.- Parameters:
pc- the program counter of the corresponding opcode.buffer- the MCDInputBuffer to decode from.out- the MCDOutputBuffer to decode to.- Throws:
java.io.IOException- if an I/O error occurs.
-
-