org.apache.bcel.generic
Class TABLESWITCH
- Cloneable, InstructionTargeter, Serializable, StackProducer, VariableLengthInstruction
TABLESWITCH - Switch within given range of values, i.e., low..high
Version:
- M. Dahm
SWITCH
void | accept(Visitor v)- Call corresponding visitor method(s).
|
void | dump(DataOutputStream out)- Dump instruction as byte code to stream out.
|
protected void | initFromFile(ByteSequence bytes, boolean wide)- Read needed data (e.g.
|
containsTarget, dump, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, setTarget, toString, updatePosition, updateTarget |
accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString |
TABLESWITCH
public TABLESWITCH(int[] match,
InstructionHandle targets,
InstructionHandle target)match - sorted array of match values, match[0] must be low value,
match[match_length - 1] high valuetargets - where to branch for matched valuestarget - default branch
accept
public void accept(Visitor v)
Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
- accept in interface Instruction
v - Visitor object
dump
public void dump(DataOutputStream out)
throws IOException Dump instruction as byte code to stream out.
- dump in interface Select
out - Output stream
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws IOException Read needed data (e.g. index) from file.
- initFromFile in interface Select