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 JSR_W extends JsrInstruction { 30 31 35 JSR_W() { 36 } 37 38 39 public JSR_W(InstructionHandle target) { 40 super(org.apache.bcel.Constants.JSR_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.visitStackProducer(this); 75 v.visitBranchInstruction(this); 76 v.visitJsrInstruction(this); 77 v.visitJSR_W(this); 78 } 79 } 80 | Popular Tags |