站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

TableSwitchGenerator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.asm.commons
Interface TableSwitchGenerator


public interface TableSwitchGenerator

A code generator for switch statements.

Author:
Juozas Baliuka, Chris Nokleberg, Eric Bruneton

Method Summary
 void generateCase(int key, Label end)
          Generates the code for a switch case.
 void generateDefault()
          Generates the code for the default switch case.
 

Method Detail

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.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.