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 JSR_W extends JsrInstruction { 66 70 JSR_W() {} 71 72 public JSR_W(InstructionHandle target) { 73 super(com.sun.org.apache.bcel.internal.Constants.JSR_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.visitStackProducer(this); 106 v.visitBranchInstruction(this); 107 v.visitJsrInstruction(this); 108 v.visitJSR_W(this); 109 } 110 } 111 | Popular Tags |