1 19 20 25 26 27 28 29 30 31 package soot.jimple.internal; 32 33 import soot.*; 34 import soot.jimple.*; 35 import soot.util.*; 36 import java.util.*; 37 38 public class JTrap extends AbstractTrap 39 { 40 41 public JTrap(SootClass exception, Unit beginStmt, Unit endStmt, Unit handlerStmt) 42 { 43 super(exception, Jimple.v().newStmtBox(beginStmt), 44 Jimple.v().newStmtBox(endStmt), 45 Jimple.v().newStmtBox(handlerStmt)); 46 } 47 48 public JTrap(SootClass exception, UnitBox beginStmt, UnitBox endStmt, UnitBox handlerStmt) 49 { 50 super(exception, beginStmt, 51 endStmt, 52 handlerStmt); 53 } 54 55 public Object clone() 56 { 57 return new JTrap(exception, getBeginUnit(), 58 getEndUnit(), getHandlerUnit()); 59 } 60 61 public String toString(){ 62 StringBuffer buf = new StringBuffer ("Trap :"); 63 buf.append("\nbegin : "); 64 buf.append(getBeginUnit()); 65 buf.append("\nend : "); 66 buf.append(getEndUnit()); 67 buf.append("\nhandler: "); 68 buf.append(getHandlerUnit()); 69 return new String (buf); 70 } 71 } 72 | Popular Tags |