Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class DE.fub.inf.JVM.ClassGen.SWITCH

java.lang.Object
  |
  +--DE.fub.inf.JVM.ClassGen.SWITCH

public final class SWITCH
extends java.lang.Object
implements CompoundInstruction
SWITCH - Branch depending on int value, generates either LOOKUPSWITCH or TABLESWITCH instruction, depending on whether the match values (int[]) can be sorted with no gaps between the numbers.

Version:
$Id: SWITCH.java,v 1.1 1998/07/01 13:08:06 dahm Exp $
Author:
M. Dahm

Constructor Summary
SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)
          Template for switch() constructs, if the match array can be sorted in ascending order with no gaps between the numbers a TABLESWITCH instruction is generated, a LOOKUPSWITCH otherwise.
 
Method Summary
InstructionList getInstructionList()
           
Instruction getInstruction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

SWITCH

public SWITCH(int[] match,
              InstructionHandle[] targets,
              InstructionHandle target)
Template for switch() constructs, if the match array can be sorted in ascending order with no gaps between the numbers a TABLESWITCH instruction is generated, a LOOKUPSWITCH otherwise.
Parameters:
match - array of match values (case 2: ... case 7: ..., etc.)
targets - the instructions to be performed for each case
target - the default target
Method Detail

getInstructionList

public final InstructionList getInstructionList()
Description copied from interface:
 
Specified by:
getInstructionList in interface CompoundInstruction

getInstruction

public final Instruction getInstruction()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD