| 1 19 20 25 26 27 28 29 30 package soot.baf.internal; 31 32 import soot.*; 33 import soot.baf.*; 34 import soot.util.*; 35 import java.util.*; 36 37 public class BGotoInst extends AbstractBranchInst implements GotoInst 38 { 39 public BGotoInst(Unit target) 40 { 41 super(Baf.v().newInstBox(target)); 42 } 43 44 45 46 public Object clone() 47 { 48 return new BGotoInst(getTarget()); 49 } 50 51 public int getInMachineCount() 52 { 53 return 0; 54 } 55 56 public boolean branches() 57 { 58 return true; 59 } 60 61 public int getInCount() 62 { 63 return 0; 64 } 65 66 public int getOutCount() 67 { 68 return 0; 69 } 70 71 public int getOutMachineCount() 72 { 73 return 0; 74 } 75 76 public String getName() { return "goto"; } 77 78 public void apply(Switch sw) 79 { 80 ((InstSwitch) sw).caseGotoInst(this); 81 } 82 83 public boolean fallsThrough() 84 { 85 return false; 86 } 87 } 88 89 | Popular Tags |