public class TABLESWITCH extends Select
SWITCH
fixed_length, indices, match, match_length, padding, targets
index, position, target
length, opcode
Constructor and Description |
---|
TABLESWITCH(int[] match,
InstructionHandle[] targets,
InstructionHandle defaultTarget) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, containsTarget, getIndices, getMatchs, getTargets, setTarget, toString, updatePosition, updateTarget
getIndex, getPosition, getTarget, getTargetOffset, getTargetOffset, setIndex, setPosition, setTarget
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
consumeStack
produceStack
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(DataOutputStream out) throws IOException
dump
in class Select
out
- Output streamIOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile
in class Select
bytes
- input streamwide
- wide prefix?IOException
- may be thrown if the implementation needs to read data from the fileInstructionList
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor objectCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.