org.ow2.asmdex.structureReader
Class SparseSwitch

java.lang.Object
  extended by org.ow2.asmdex.structureReader.SparseSwitch
All Implemented Interfaces:
ISwitchCase

public class SparseSwitch
extends java.lang.Object
implements ISwitchCase

Contains the data of a Spare Switch structure.

Author:
Julien Névo

Constructor Summary
SparseSwitch()
           
 
Method Summary
 Label getDefaultLabel()
          Returns the Default Label for this Switch.
 int[] getKeys()
          Set of values handled.
 Label[] getSwitchLabels()
          Returns the Labels of each Case for this Switch.
 void setDefaultLabel(Label defaultLabel)
          Sets the Default Label for this Switch.
 void setKeys(int[] keys)
          Setter for values handled by the sparse switch
 void setSwitchLabels(Label[] switchLabels)
          Sets the Labels of each Case for this Switch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseSwitch

public SparseSwitch()
Method Detail

getKeys

public int[] getKeys()
Set of values handled.

Returns:
the values filtered as an array of integer

setKeys

public void setKeys(int[] keys)
Setter for values handled by the sparse switch

Parameters:
keys -

getSwitchLabels

public Label[] getSwitchLabels()
Description copied from interface: ISwitchCase
Returns the Labels of each Case for this Switch.

Specified by:
getSwitchLabels in interface ISwitchCase
Returns:
the Labels of each Case for this Switch.

setSwitchLabels

public void setSwitchLabels(Label[] switchLabels)
Description copied from interface: ISwitchCase
Sets the Labels of each Case for this Switch.

Specified by:
setSwitchLabels in interface ISwitchCase
Parameters:
switchLabels - the Labels to set of each Case of this Switch.

getDefaultLabel

public Label getDefaultLabel()
Description copied from interface: ISwitchCase
Returns the Default Label for this Switch.

Specified by:
getDefaultLabel in interface ISwitchCase
Returns:
the Default Label for this Switch.

setDefaultLabel

public void setDefaultLabel(Label defaultLabel)
Description copied from interface: ISwitchCase
Sets the Default Label for this Switch.

Specified by:
setDefaultLabel in interface ISwitchCase
Parameters:
defaultLabel - the Default Label to set for this Switch.