org.apache.bcel.generic

Class TABLESWITCH

public class TABLESWITCH extends Select

TABLESWITCH - Switch within given range of values, i.e., low..high

See Also: SWITCH

Constructor Summary
TABLESWITCH(int[] match, InstructionHandle[] targets, InstructionHandle defaultTarget)
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
voiddump(DataOutputStream out)
Dump instruction as byte code to stream out.
protected voidinitFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.

Constructor Detail

TABLESWITCH

public TABLESWITCH(int[] match, InstructionHandle[] targets, InstructionHandle defaultTarget)

Parameters: match sorted array of match values, match[0] must be low value, match[match_length - 1] high value targets where to branch for matched values defaultTarget default branch

Method Detail

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.

Parameters: v Visitor object

dump

public void dump(DataOutputStream out)
Dump instruction as byte code to stream out.

Parameters: out Output stream

initFromFile

protected void initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.