Interface TableSwitchGenerator


public interface TableSwitchGenerator
A code generator for switch statements.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generateCase(int key, Label end)
    Generates the code for a switch case.
    void
    Generates the code for the default switch case.
  • Method Details

    • generateCase

      void generateCase(int key, Label end)
      Generates the code for a switch case.
      Parameters:
      key - the switch case key.
      end - a label that corresponds to the end of the switch statement.
    • generateDefault

      void generateDefault()
      Generates the code for the default switch case.