Class LookupswitchOperandDecoder

  • All Implemented Interfaces:
    OperandType

    public class LookupswitchOperandDecoder
    extends java.lang.Object
    implements OperandType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void decode​(int pc, de.carne.mcd.io.MCDInputBuffer buffer, de.carne.mcd.io.MCDOutputBuffer out)
      Decodes the operand.
      java.lang.String name()
      Gets the operand type's name.
      char type()
      Gets the operand's type (B:byte, S:short, I:int).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LookupswitchOperandDecoder

        public LookupswitchOperandDecoder()
    • Method Detail

      • type

        public char type()
        Description copied from interface: OperandType
        Gets the operand's type (B:byte, S:short, I:int).
        Specified by:
        type in interface OperandType
        Returns:
        the operand's type (B:byte, S:short, I:int).
      • name

        public java.lang.String name()
        Description copied from interface: OperandType
        Gets the operand type's name.
        Specified by:
        name in interface OperandType
        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.IOException
        Description copied from interface: OperandType
        Decodes the operand.
        Specified by:
        decode in interface OperandType
        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.