| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.classFile.code.instructions.AInstruction
sysModel.classFile.code.instructions.TableSwitchInstruction
public class TableSwitchInstruction
TABLESWITCH Java instruction.
| Field Summary | |
|---|---|
| protected  long | _highUpper bound. | 
| protected  long | _lowLower bound. | 
| protected  int[] | _targetsBranch targets. | 
| Constructor Summary | |
|---|---|
| TableSwitchInstruction(byte[] bytecode,
                                             short pc,
                                             short paddingPC,
                                             LineNumberTable lnt)Make a new TABLESWITCH instruction from the bytecode stating at pc, padded using paddingPC, and use the line number table for branches. | |
| TableSwitchInstruction(int defaultTarget,
                                             long low,
                                             long high,
                                             int[] targets)Constructor. | |
| Method Summary | |
|---|---|
|  boolean | equals(java.lang.Object o)Return true of this instruction and the other object are equal. | 
|  short[] | getBranchTargets()Return an array of target indices. | 
|  byte[] | getBytecode(short pc,
                       LineNumberTable lnt)Get the bytecode for this instruction, padded for the specified program counter value, with branch targets according to the specified line number table | 
|  short | getBytecodeLength(short pc)Get the length bytecode for this instruction, padded for the specified program counter value. | 
|  byte | getOpcode()Get the opcode of this instruction. | 
|  int | hashCode()Return hash code. | 
|  void | setBranchTargets(short[] branchTargets)Set the branch target indices. | 
|  java.lang.String | toString()Return instruction in human-readable form. | 
| Methods inherited from class sysModel.classFile.code.instructions.AInstruction | 
|---|
| getCorrespondingLoad, getCorrespondingStore, makeInstruction | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected long _low
protected long _high
protected int[] _targets
| Constructor Detail | 
|---|
public TableSwitchInstruction(int defaultTarget,
                              long low,
                              long high,
                              int[] targets)
defaultTarget - default target line numberlow - lower boundhigh - upper boundtargets - target line nu,bers
public TableSwitchInstruction(byte[] bytecode,
                              short pc,
                              short paddingPC,
                              LineNumberTable lnt)
bytecode - bytecodepc - starting index in bytecodepaddingPC - PC for paddinglnt - line number table for branches| Method Detail | 
|---|
public byte getOpcode()
getOpcode in class AInstructionpublic short getBytecodeLength(short pc)
getBytecodeLength in class AInstructionpc - PC for padding
public byte[] getBytecode(short pc,
                          LineNumberTable lnt)
getBytecode in class AInstructionpc - PC for paddinglnt - line number table for branches
public boolean equals(java.lang.Object o)
equals in class AInstructiono - other object
public int hashCode()
hashCode in class AInstructionpublic short[] getBranchTargets()
getBranchTargets in class AInstructionpublic void setBranchTargets(short[] branchTargets)
setBranchTargets in class AInstructionbranchTargets - array of target indicespublic java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||