org.objectweb.asm.commons

Interface TableSwitchGenerator

public interface TableSwitchGenerator

A code generator for switch statements.

Author: Juozas Baliuka Chris Nokleberg Eric Bruneton

Method Summary
voidgenerateCase(int key, Label end)
Generates the code for a switch case.
voidgenerateDefault()
Generates the code for the default switch case.

Method Detail

generateCase

public 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

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