1 19 20 25 26 27 28 29 30 31 package soot.jimple.internal; 32 33 import soot.tagkit.*; 34 import soot.*; 35 import soot.jimple.*; 36 import soot.baf.*; 37 import soot.jimple.*; 38 import soot.util.*; 39 import java.util.*; 40 41 public class JNegExpr extends AbstractNegExpr implements ConvertToBaf 42 { 43 public JNegExpr(Value op) 44 { 45 super(Jimple.v().newImmediateBox(op)); 46 } 47 48 public void convertToBaf(JimpleToBafContext context, List out) 49 { 50 ((ConvertToBaf)(getOp())).convertToBaf(context, out); 51 Unit u = Baf.v().newNegInst(getType()); 52 out.add(u); 53 Iterator it = context.getCurrentUnit().getTags().iterator(); 54 while(it.hasNext()) { 55 u.addTag((Tag) it.next()); 56 } 57 } 58 59 60 public Object clone() 61 { 62 return new JNegExpr(Jimple.cloneIfNecessary(getOp())); 63 } 64 65 66 } 67 | Popular Tags |