FileDocCategorySizeDatePackage
GOTO_W.javaAPI DocJava SE 6 API4263Tue Jun 10 00:22:20 BST 2008com.sun.org.apache.bcel.internal.generic

GOTO_W

public class GOTO_W extends GotoInstruction
GOTO_W - Branch always (to relative offset, not absolute address)
version
$Id: GOTO_W.java,v 1.1.2.1 2005/07/31 23:44:57 jeffsuttor Exp $
author
M. Dahm

Fields Summary
Constructors Summary
GOTO_W()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

public GOTO_W(InstructionHandle target)

    super(com.sun.org.apache.bcel.internal.Constants.GOTO_W, target);
    length = 5;
  
Methods Summary
public voidaccept(com.sun.org.apache.bcel.internal.generic.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.

param
v Visitor object

    v.visitUnconditionalBranch(this);
    v.visitBranchInstruction(this);
    v.visitGotoInstruction(this);
    v.visitGOTO_W(this);
  
public voiddump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.

param
out Output stream

    index = getTargetOffset();
    out.writeByte(opcode);
    out.writeInt(index);
  
protected voidinitFromFile(com.sun.org.apache.bcel.internal.util.ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.

    index  = bytes.readInt();
    length = 5;