1 package com.sun.org.apache.bcel.internal.generic; 2 3 56 import java.io.*; 57 import com.sun.org.apache.bcel.internal.util.ByteSequence; 58 59 65 public class GOTO_W extends GotoInstruction { 66 70 GOTO_W() {} 71 72 public GOTO_W(InstructionHandle target) { 73 super(com.sun.org.apache.bcel.internal.Constants.GOTO_W, target); 74 length = 5; 75 } 76 77 81 public void dump(DataOutputStream out) throws IOException { 82 index = getTargetOffset(); 83 out.writeByte(opcode); 84 out.writeInt(index); 85 } 86 87 90 protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException 91 { 92 index = bytes.readInt(); 93 length = 5; 94 } 95 96 104 public void accept(Visitor v) { 105 v.visitUnconditionalBranch(this); 106 v.visitBranchInstruction(this); 107 v.visitGotoInstruction(this); 108 v.visitGOTO_W(this); 109 } 110 } 111 | Popular Tags |