|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.reflect.Instruction
alt.jiapi.reflect.SwitchInstruction
public class SwitchInstruction
SwitchInstruction represents switch-case construct in Java language jargon. Internally, this class encapsulates different switch instructions in bytecode level. Like tableswitch and lookupswitch.
Nested Class Summary | |
---|---|
class |
SwitchInstruction.Target
This class encapsulates SwitchInstructions key-target pair. |
Method Summary | |
---|---|
byte[] |
getBytes()
Gets the bytes of this instruction. |
Instruction |
getDefault()
Get the default Instruction of this SwitchInstruction. |
SwitchInstruction.Target[] |
getTargets()
Gets all the targets of this SwitchInstruction. |
java.lang.String |
toString()
|
Methods inherited from class alt.jiapi.reflect.Instruction |
---|
getAttribute, getOffset, getOpcode, length, setAttribute, setAttribute, setBytes, setOffset, stackConsumption, stackUsage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public byte[] getBytes()
Instruction
getBytes
in class Instruction
public Instruction getDefault()
public SwitchInstruction.Target[] getTargets()
public java.lang.String toString()
toString
in class Instruction
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |