1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 import java.io.PrintStream ; 28 29 33 34 public class InsnTarget extends Insn { 35 36 private boolean branchTarget = false; 37 38 public int nStackArgs() { 39 return 0; 40 } 41 42 public int nStackResults() { 43 return 0; 44 } 45 46 public String argTypes() { 47 return ""; } 49 50 public String resultTypes() { 51 return ""; } 53 54 public boolean branches() { 55 return false; 56 } 57 58 public void setBranchTarget() { 59 branchTarget = true; 60 } 61 62 63 public boolean isBranchTarget() { 64 return branchTarget; 65 } 66 67 70 public InsnTarget() { 71 super(opc_target, NO_OFFSET); 72 } 73 74 75 76 void print (PrintStream out, int indent) { 77 ClassPrint.spaces(out, indent); 78 out.println(offset() + ":"); } 80 81 int store(byte buf[], int index) { 82 return index; 83 } 84 85 int size() { 86 return 0; 87 } 88 89 InsnTarget(int offset) { 90 super(opc_target, offset); 91 } 92 93 } 94 95 | Popular Tags |