joeq.Compiler.BytecodeAnalysis
Class Bytecodes.LOOKUPSWITCH

java.lang.Object
  extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
      extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.BranchInstruction
          extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.Select
              extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.LOOKUPSWITCH
All Implemented Interfaces:
Serializable, Cloneable, Bytecodes.InstructionTargeter, Bytecodes.StackProducer, Bytecodes.VariableLengthInstruction
Enclosing interface:
Bytecodes

public static class Bytecodes.LOOKUPSWITCH
extends Bytecodes.Select

See Also:
Serialized Form

Field Summary
 
Fields inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Select
fixed_length, indices, match, match_length, padding, targets
 
Fields inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.BranchInstruction
index, position, target
 
Fields inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
length, opcode
 
Constructor Summary
Bytecodes.LOOKUPSWITCH(int[] match, ArrayList targets, Bytecodes.InstructionHandle target)
           
 
Method Summary
 void accept(Bytecodes.Visitor v)
          Call corresponding visitor method(s).
 void dump(DataOutputStream out)
          Dump instruction as byte code to stream out.
protected  void initFromFile(jq_ConstantPool cp, jwutil.io.ByteSequence bytes, boolean wide)
          Read needed data (e.g.
 
Methods inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Select
containsTarget, getIndices, getMatchs, getTargets, setTarget, toString, updatePosition, updateTarget
 
Methods inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.BranchInstruction
getIndex, getTarget, getTargetOffset, getTargetOffset, setTarget
 
Methods inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
consumeStack, copy, getLength, getOpcode, produceStack, readInstruction, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface joeq.Compiler.BytecodeAnalysis.Bytecodes.StackProducer
produceStack
 

Constructor Detail

Bytecodes.LOOKUPSWITCH

public Bytecodes.LOOKUPSWITCH(int[] match,
                              ArrayList targets,
                              Bytecodes.InstructionHandle target)
Method Detail

dump

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

Overrides:
dump in class Bytecodes.Select
Parameters:
out - Output stream
Throws:
IOException

initFromFile

protected void initFromFile(jq_ConstantPool cp,
                            jwutil.io.ByteSequence bytes,
                            boolean wide)
                     throws IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class Bytecodes.Select
Parameters:
cp - constant pool of class we are reading
bytes - input stream
wide - wide prefix?
Throws:
IOException
See Also:
Bytecodes.InstructionList

accept

public void accept(Bytecodes.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.

Specified by:
accept in class Bytecodes.Instruction
Parameters:
v - Visitor object


Copyright © 2001-2008 John Whaley. All Rights Reserved.