org.apache.bcel.generic
public class TABLESWITCH extends Select
SWITCH
,
Serialized Formfixed_length, indices, match, match_length, padding, targets
index, position, target
length, opcode
Constructor and Description |
---|
TABLESWITCH()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
TABLESWITCH(int[] match,
InstructionHandle[] targets,
InstructionHandle defaultTarget) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g.
|
clone, containsTarget, dispose, getIndices, getMatchs, getTargets, setTarget, toString, updatePosition, updateTarget
getIndex, getTarget, getTargetOffset, getTargetOffset, notifyTarget, setTarget
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toString
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
produceStack
TABLESWITCH()
public TABLESWITCH(int[] match, InstructionHandle[] targets, InstructionHandle defaultTarget)
match
- sorted array of match values, match[0] must be low value,
match[match_length - 1] high valuetargets
- where to branch for matched valuesdefaultTarget
- default branchpublic void dump(java.io.DataOutputStream out) throws java.io.IOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class Select
bytes
- input streamwide
- wide prefix?java.io.IOException
InstructionList
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object