org.apache.bcel.generic

Class LOOKUPSWITCH

public class LOOKUPSWITCH extends Select

LOOKUPSWITCH - Switch with unordered set of values

Version: $Id: LOOKUPSWITCH.java 152690 2001-10-29 19:59:54Z jvanzyl $

Author: M. Dahm

See Also: SWITCH

Constructor Summary
LOOKUPSWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)
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

LOOKUPSWITCH

public LOOKUPSWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)

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.