Class LOOKUPSWITCH

java.lang.Object
de.uzl.its.swat.symbolic.instruction.Instruction
de.uzl.its.swat.symbolic.instruction.LOOKUPSWITCH
All Implemented Interfaces:
Serializable

public class LOOKUPSWITCH extends Instruction
LOOKUPSWITCH - Access jump table by key match and jump. For more information see the Java VM specification.
See Also:
  • Field Details

    • dflt

      public int dflt
    • keys

      public int[] keys
    • labels

      public int[] labels
  • Constructor Details

    • LOOKUPSWITCH

      public LOOKUPSWITCH(int iid, int mid, int dflt, int[] keys, int[] labels)
      Creates a new LOOKUPSWITCH instruction.
      Parameters:
      iid - instruction id.
      mid - method id.
      dflt - beginning of the default handler block.
      keys - the values of the keys.
      labels - beginnings of the handler blocks.
  • Method Details

    • accept

      public void accept(IVisitor visitor)
      Accept method for the visitor.
      Specified by:
      accept in class Instruction
      Parameters:
      visitor - the visitor
    • toString

      public String toString()
      Returns the string representation of the instruction.
      Overrides:
      toString in class Object
      Returns:
      the representation.