|
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.LookupSwitchInstruction
The LOOKUPSWITCH 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 |
LookupSwitchInstruction(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 |
addCase(int match,
Instruction target)
|
int |
getDefaultOffset()
Synonymous with getOffset(). |
Instruction |
getDefaultTarget()
Synonymous with getTarget(). |
int |
getLength()
Return the length in bytes of this opcode, including all arguments. |
int[] |
getMatches()
|
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 |
setCases(int[] matches,
Instruction[] targets)
Set the match-jumppt pairs for this switch. |
void |
setCases(int[] matches,
int[] offsets)
Set the match-offset pairs for this switch. |
void |
setDefaultOffset(int offset)
Synonymous with setOffset(). |
void |
setDefaultTarget(Instruction ins)
Synonymous with setTarget(). |
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 |
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 LookupSwitchInstruction(Code owner)
| Method Detail |
public Instruction getDefaultTarget()
public void setDefaultTarget(Instruction ins)
public int getDefaultOffset()
public void setDefaultOffset(int offset)
public void setCases(int[] matches,
Instruction[] targets)
public void setCases(int[] matches,
int[] offsets)
public int[] getMatches()
public Instruction[] getTargets()
public int[] getOffsets()
public void addCase(int match,
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 | ||||||||