Module de.carne.mcd.jvmdecoder
Class TableswitchOperandDecoder
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.bytecode.TableswitchOperandDecoder
-
- All Implemented Interfaces:
OperandType
public class TableswitchOperandDecoder extends java.lang.Object implements OperandType
-
-
Constructor Summary
Constructors Constructor Description TableswitchOperandDecoder()
-
Method Summary
All Methods Instance Methods Concrete 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
public char type()
Description copied from interface:OperandTypeGets the operand's type (B:byte, S:short, I:int).- Specified by:
typein interfaceOperandType- Returns:
- the operand's type (B:byte, S:short, I:int).
-
name
public java.lang.String name()
Description copied from interface:OperandTypeGets the operand type's name.- Specified by:
namein interfaceOperandType- Returns:
- the operand type's name.
-
decode
public void decode(int pc, de.carne.mcd.io.MCDInputBuffer buffer, de.carne.mcd.io.MCDOutputBuffer out) throws java.io.IOExceptionDescription copied from interface:OperandTypeDecodes the operand.- Specified by:
decodein interfaceOperandType- 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.
-
-