|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.gjt.jclasslib.bytecode.AbstractInstruction
|
+--org.gjt.jclasslib.bytecode.PaddedInstruction
|
+--org.gjt.jclasslib.bytecode.LookupSwitchInstruction
Describes the lookupswitch instruction.
| Field Summary |
| Constructor Summary | |
LookupSwitchInstruction(int opcode)
Constructor. |
|
| Method Summary | |
int |
getDefaultOffset()
Get the default offset of the branch of this instruction. |
List |
getMatchOffsetPairs()
Get the match-offset pairs of the branch of this instruction as a java.util.List of MatchOffsetPair elements. |
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 |
setMatchOffsetPairs(List matchOffsetPairs)
Set the match-offset pairs of the branch of this instruction as a java.util.List of LookupSwitchInstruction.MatchOffsetPair elements. |
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 LookupSwitchInstruction(int opcode)
opcode - the opcode.| Method Detail |
public int getSize()
AbstractInstruction
getSize in class AbstractInstructionpublic int getDefaultOffset()
public void setDefaultOffset(int defaultOffset)
defaultOffset - the offsetpublic List getMatchOffsetPairs()
public void setMatchOffsetPairs(List matchOffsetPairs)
matchOffsetPairs - the list
public void read(ByteCodeInput in)
throws IOException
AbstractInstructionExcpects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
read in class PaddedInstructionin - the ByteCodeInput from which to read
IOException - if an exception occurs with the ByteCodeInput
public void write(ByteCodeOutput out)
throws IOException
AbstractInstruction
write in class PaddedInstructionout - the ByteCodeOutput to which to write
IOException - if an exception occurs with the ByteCodeOutput
|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||