|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.jclasslib.bytecode.AbstractInstruction
org.gjt.jclasslib.bytecode.PaddedInstruction
org.gjt.jclasslib.bytecode.TableSwitchInstruction
Describes the tableswitch instruction.
Field Summary |
Constructor Summary | |
TableSwitchInstruction(int opcode)
Constructor. |
Method Summary | |
int |
getDefaultOffset()
Get the default offset of the branch of this instruction. |
int |
getHighByte()
Get the upper bound for the table switch. |
int[] |
getJumpOffsets()
Get the array of relative jump offsets for the table switch. |
int |
getLowByte()
Get the lower bound for the table switch. |
int |
getSize()
Get the size in bytes of this instruction. |
void |
read(ByteCodeInput in)
Read this instruction from the given ByteCodeInput. |
void |
setDefaultOffset(int defaultOffset)
Set the default offset of the branch of this instruction. |
void |
setHighByte(int highByte)
Set the upper bound for the table switch. |
void |
setJumpOffsets(int[] jumpOffsets)
Set the array of relative jump offsets for the table switch. |
void |
setLowByte(int lowByte)
Set the lower bound for the table switch. |
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput. |
Methods inherited from class org.gjt.jclasslib.bytecode.PaddedInstruction |
getPaddedSize |
Methods inherited from class org.gjt.jclasslib.bytecode.AbstractInstruction |
getOffset, getOpcode, getOpcodeVerbose, setOffset, setOpcode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableSwitchInstruction(int opcode)
opcode
- the opcode.Method Detail |
public int getSize()
AbstractInstruction
getSize
in class AbstractInstruction
public int getDefaultOffset()
public void setDefaultOffset(int defaultOffset)
defaultOffset
- the offsetpublic int getLowByte()
public void setLowByte(int lowByte)
lowByte
- the lower boundpublic int getHighByte()
public void setHighByte(int highByte)
highByte
- the upper boundpublic int[] getJumpOffsets()
public void setJumpOffsets(int[] jumpOffsets)
jumpOffsets
- the arraypublic void read(ByteCodeInput in) throws IOException
AbstractInstruction
Excpects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
read
in class PaddedInstruction
IOException
public void write(ByteCodeOutput out) throws IOException
AbstractInstruction
write
in class PaddedInstruction
IOException
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |