|
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.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 AbstractInstruction
public int getDefaultOffset()
public void setDefaultOffset(int defaultOffset)
defaultOffset
- the offsetpublic List getMatchOffsetPairs()
public void setMatchOffsetPairs(List matchOffsetPairs)
matchOffsetPairs
- the listpublic 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 |