Top Description Fields Constructors Methods
org.aspectj.apache.bcel.generic

public Class TABLESWITCH

extends InstructionSelect
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants, org.aspectj.apache.bcel.util.ByteSequence

TABLESWITCH - Switch within given range of values, i.e., low..high
Author
M. Dahm
Version
$Id: TABLESWITCH.java,v 1.5 2008/08/28 00:05:29 aclement Exp $
See Also
SWITCH

Field Summary

Inherited from org.aspectj.apache.bcel.generic.InstructionSelect:
fixedLengthindiceslengthmatchmatchLengthpaddingtargets

Constructor Summary

AccessConstructor and Description
public
TABLESWITCH(int[]
sorted array of match values, match[0] must be low value, match[match_length - 1] high value
match
,
InstructionHandle[]
where to branch for matched values
targets
,
InstructionHandle
default branch
target
)

public
TABLESWITCH(ByteSequence bytes)

Read needed data (e.g. index) from file.

Method Summary

Modifier and TypeMethod and Description
public void
dump(DataOutputStream
Output stream
out
)

Overrides org.aspectj.apache.bcel.generic.InstructionSelect.dump.

Dump instruction as byte code to stream out.
Inherited from org.aspectj.apache.bcel.generic.InstructionSelect:
containsTargetdisposeequalsgetIndicesgetLengthgetMatchsgetTargetOffsetgetTargetshashCodesetTargettoStringupdatePositionupdateTarget

Constructor Detail

TABLESWITCHback to summary
public TABLESWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)
Parameters
match:int[]

sorted array of match values, match[0] must be low value, match[match_length - 1] high value

targets:InstructionHandle[]

where to branch for matched values

target:InstructionHandle

default branch

TABLESWITCHback to summary
public TABLESWITCH(ByteSequence bytes) throws IOException

Read needed data (e.g. index) from file.

Method Detail

dumpback to summary
public void dump(DataOutputStream out) throws IOException

Overrides org.aspectj.apache.bcel.generic.InstructionSelect.dump.

Dump instruction as byte code to stream out.

Parameters
out:DataOutputStream

Output stream