|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.techtrader.modules.tools.bytecode.Instruction | +--com.techtrader.modules.tools.bytecode.JumpInstruction | +--com.techtrader.modules.tools.bytecode.TableSwitchInstruction
A TABLESWITCH instruction.
Fields inherited from class com.techtrader.modules.tools.bytecode.JumpInstruction |
_offset,
_target |
Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction |
_byteIndex,
_opcode,
_opcodeTypes,
_owner |
Constructor Summary | |
protected |
TableSwitchInstruction(Code owner)
|
Method Summary | |
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object. |
void |
addTarget(Instruction target)
|
int |
getDefaultOffset()
Synonymous with getOffset(). |
Instruction |
getDefaultTarget()
Synonymous with getTarget(). |
int |
getHigh()
|
int |
getLength()
Return the length in bytes of this opcode, including all arguments. |
int |
getLow()
|
int[] |
getOffsets()
|
int |
getStackChange()
Return the number of stack positions this instruction pushes or pops during its execution. |
Instruction[] |
getTargets()
|
void |
readData(DataInput in)
Read the arguments for this opcode from the given stream. |
void |
setDefaultOffset(int offset)
Synonymous with setOffset(). |
void |
setDefaultTarget(Instruction jpt)
Synonymous with setTarget(). |
void |
setHigh(int high)
|
void |
setLow(int low)
|
void |
setMarkers(List inss)
Use the byte indexes read from the .class file to calculate and set references to the target instruction(s) for this ptr. |
void |
setOffsets(int[] offsets)
Set the offsets for this switch. |
void |
setTargets(Instruction[] targets)
Set the jumppts for this switch. |
void |
writeData(DataOutput out)
Write the arguments for this opcode to the given stream. |
Methods inherited from class com.techtrader.modules.tools.bytecode.JumpInstruction |
copy,
equals,
getOffset,
getTarget,
setOffset,
setTarget |
Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction |
getByteIndex,
getName,
getOpCode,
getOwner,
invalidate,
setByteIndex,
setOpCode |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected TableSwitchInstruction(Code owner)
Method Detail |
public Instruction getDefaultTarget()
public void setDefaultTarget(Instruction jpt)
public int getDefaultOffset()
public void setDefaultOffset(int offset)
public int getLow()
public void setLow(int low)
public int getHigh()
public void setHigh(int high)
public void setTargets(Instruction[] targets)
public void setOffsets(int[] offsets)
public Instruction[] getTargets()
public int[] getOffsets()
public void addTarget(Instruction target)
public int getLength()
public int getStackChange()
public void readData(DataInput in) throws IOException
public void writeData(DataOutput out) throws IOException
public void setMarkers(List inss)
codes
- the list of opcodes in the methodpublic void acceptVisit(BCVisitor visit)
|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |