Package com.strobel.assembler.metadata
Class SwitchInfo
- java.lang.Object
-
- com.strobel.assembler.metadata.SwitchInfo
-
public final class SwitchInfo extends java.lang.Object
User: Mike Strobel Date: 1/6/13 Time: 3:21 PM
-
-
Field Summary
Fields Modifier and Type Field Description private Instruction
_defaultTarget
private int
_highValue
private int[]
_keys
private int
_lowValue
private Instruction[]
_targets
-
Constructor Summary
Constructors Constructor Description SwitchInfo()
SwitchInfo(int[] keys, Instruction defaultTarget, Instruction[] targets)
SwitchInfo(Instruction defaultTarget, Instruction[] targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instruction
getDefaultTarget()
int
getHighValue()
int[]
getKeys()
int
getLowValue()
Instruction[]
getTargets()
boolean
hasKeys()
void
setDefaultTarget(Instruction defaultTarget)
void
setHighValue(int highValue)
void
setKeys(int... keys)
void
setLowValue(int lowValue)
void
setTargets(Instruction... targets)
-
-
-
Field Detail
-
_lowValue
private int _lowValue
-
_highValue
private int _highValue
-
_keys
private int[] _keys
-
_defaultTarget
private Instruction _defaultTarget
-
_targets
private Instruction[] _targets
-
-
Constructor Detail
-
SwitchInfo
public SwitchInfo()
-
SwitchInfo
public SwitchInfo(Instruction defaultTarget, Instruction[] targets)
-
SwitchInfo
public SwitchInfo(int[] keys, Instruction defaultTarget, Instruction[] targets)
-
-
Method Detail
-
getLowValue
public int getLowValue()
-
setLowValue
public void setLowValue(int lowValue)
-
getHighValue
public int getHighValue()
-
setHighValue
public void setHighValue(int highValue)
-
hasKeys
public boolean hasKeys()
-
getKeys
public int[] getKeys()
-
getDefaultTarget
public Instruction getDefaultTarget()
-
getTargets
public Instruction[] getTargets()
-
setKeys
public void setKeys(int... keys)
-
setDefaultTarget
public void setDefaultTarget(Instruction defaultTarget)
-
setTargets
public void setTargets(Instruction... targets)
-
-