1 19 20 25 26 27 28 29 30 31 package soot.jimple.internal; 32 33 import soot.baf.*; 34 35 import soot.tagkit.*; 36 import soot.jimple.*; 37 import soot.*; 38 import soot.jimple.*; 39 import soot.util.*; 40 import java.util.*; 41 42 public class JNopStmt extends AbstractStmt implements NopStmt 43 { 44 public JNopStmt() 45 { 46 } 47 48 49 public Object clone() 50 { 51 return new JNopStmt(); 52 } 53 54 55 public String toString() 56 { 57 return Jimple.v().NOP; 58 } 59 60 public void toString(UnitPrinter up) { 61 up.literal(Jimple.v().NOP); 62 } 63 64 public void apply(Switch sw) 65 { 66 ((StmtSwitch) sw).caseNopStmt(this); 67 } 68 69 public void convertToBaf(JimpleToBafContext context, List out) 70 { 71 Unit u; 72 out.add(u = Baf.v().newNopInst()); 73 74 Unit currentUnit = this; 75 76 Iterator it = currentUnit.getTags().iterator(); 77 while(it.hasNext()) { 78 u.addTag((Tag) it.next()); 79 } 80 } 81 82 83 public boolean fallsThrough(){return true;} 84 public boolean branches(){return false;} 85 86 } 87 88 89 90 91 | Popular Tags |