Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Compil3r.BytecodeAnalysis
Class Bytecodes.GOTO  view Bytecodes.GOTO download Bytecodes.GOTO.java

java.lang.Object
  extended byCompil3r.BytecodeAnalysis.Bytecodes.Instruction
      extended byCompil3r.BytecodeAnalysis.Bytecodes.BranchInstruction
          extended byCompil3r.BytecodeAnalysis.Bytecodes.GotoInstruction
              extended byCompil3r.BytecodeAnalysis.Bytecodes.GOTO
All Implemented Interfaces:
Bytecodes.InstructionTargeter, Bytecodes.UnconditionalBranch, Bytecodes.VariableLengthInstruction, java.lang.Cloneable, java.io.Serializable
Enclosing class:
Bytecodes

public static class Bytecodes.GOTO
extends Bytecodes.GotoInstruction
implements Bytecodes.VariableLengthInstruction, Bytecodes.UnconditionalBranch


Field Summary
 
Fields inherited from class Compil3r.BytecodeAnalysis.Bytecodes.BranchInstruction
index, position, target
 
Fields inherited from class Compil3r.BytecodeAnalysis.Bytecodes.Instruction
length, opcode
 
Constructor Summary
(package private) Bytecodes.GOTO()
          Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
  Bytecodes.GOTO(Bytecodes.InstructionHandle target)
           
 
Method Summary
 void accept(Bytecodes.Visitor v)
          Call corresponding visitor method(s).
 void dump(java.io.DataOutputStream out)
          Dump instruction as byte code to stream out.
protected  int updatePosition(int offset, int max_offset)
          Called in pass 2 of InstructionList.setPositions() in order to update the branch target, that may shift due to variable length instructions.
 
Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.BranchInstruction
containsTarget, dispose, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, notifyTarget, setTarget, toString, updateTarget
 
Methods inherited from class Compil3r.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
 

Constructor Detail

Bytecodes.GOTO

Bytecodes.GOTO()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.


Bytecodes.GOTO

public Bytecodes.GOTO(Bytecodes.InstructionHandle target)
Method Detail

dump

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

Overrides:
dump in class Bytecodes.BranchInstruction

updatePosition

protected int updatePosition(int offset,
                             int max_offset)
Called in pass 2 of InstructionList.setPositions() in order to update the branch target, that may shift due to variable length instructions.

Overrides:
updatePosition in class Bytecodes.BranchInstruction

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