1 17 package org.apache.bcel.generic; 18 19 import java.io.DataOutputStream ; 20 import java.io.IOException ; 21 import org.apache.bcel.util.ByteSequence; 22 23 29 public class GOTO_W extends GotoInstruction { 30 31 35 GOTO_W() { 36 } 37 38 39 public GOTO_W(InstructionHandle target) { 40 super(org.apache.bcel.Constants.GOTO_W, target); 41 length = 5; 42 } 43 44 45 49 public void dump( DataOutputStream out ) throws IOException { 50 index = getTargetOffset(); 51 out.writeByte(opcode); 52 out.writeInt(index); 53 } 54 55 56 59 protected void initFromFile( ByteSequence bytes, boolean wide ) throws IOException { 60 index = bytes.readInt(); 61 length = 5; 62 } 63 64 65 73 public void accept( Visitor v ) { 74 v.visitUnconditionalBranch(this); 75 v.visitBranchInstruction(this); 76 v.visitGotoInstruction(this); 77 v.visitGOTO_W(this); 78 } 79 } 80 | Popular Tags |