org.ow2.asmdex.structureReader
Class PackedSwitch

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

public class PackedSwitch
extends java.lang.Object
implements ISwitchCase

Contains the data of a Packed Switch structure.

Author:
Julien Névo

Constructor Summary
PackedSwitch()
           
 
Method Summary
 Label getDefaultLabel()
          Returns the Default Label for this Switch.
 Label[] getSwitchLabels()
          Returns the Labels of each Case for this Switch.
 int getValueMax()
          Max value getter
 int getValueMin()
          Minimum value getter
 void setDefaultLabel(Label defaultLabel)
          Sets the Default Label for this Switch.
 void setSwitchLabels(Label[] switchLabels)
          Sets the Labels of each Case for this Switch.
 void setValueMax(int valueMax)
          Max value setter (treated in the switch)
 void setValueMin(int valueMin)
          Minimum value setter (treated in the switch)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackedSwitch

public PackedSwitch()
Method Detail

getValueMin

public int getValueMin()
Minimum value getter

Returns:
minimal value filtered

setValueMin

public void setValueMin(int valueMin)
Minimum value setter (treated in the switch)

Parameters:
valueMin -

getValueMax

public int getValueMax()
Max value getter

Returns:
max value filtered

setValueMax

public void setValueMax(int valueMax)
Max value setter (treated in the switch)

Parameters:
valueMax -

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.