1 19 20 25 26 27 package soot.jimple.internal; 28 29 import soot.*; 30 import soot.jimple.*; 31 import soot.util.*; 32 import java.util.*; 33 34 public class JCaughtExceptionRef implements CaughtExceptionRef 35 { 36 public JCaughtExceptionRef() 37 { 38 } 39 40 public boolean equivTo(Object c) 41 { 42 return c instanceof CaughtExceptionRef; 43 } 44 45 46 public int equivHashCode() 47 { 48 return 1729; 49 } 50 51 public Object clone() 52 { 53 return new JCaughtExceptionRef(); 54 } 55 56 public String toString() 57 { 58 return "@caughtexception"; 59 } 60 61 public void toString(UnitPrinter up) 62 { 63 up.identityRef(this); 64 } 65 66 public List getUseBoxes() 67 { 68 return AbstractUnit.emptyList; 69 } 70 71 public Type getType() 72 { 73 return RefType.v("java.lang.Throwable"); 74 } 75 76 public void apply(Switch sw) 77 { 78 ((RefSwitch) sw).caseCaughtExceptionRef(this); 79 } 80 } 81 | Popular Tags |