(JMethod method)
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public IR buildIR(JMethod method) { |
| 52 | try { |
| 53 | return new MethodIRBuilder(method, converter).build(); |
| 54 | } catch (RuntimeException e) { |
| 55 | if (e.getStackTrace()[0].getClassName().startsWith("soot")) { |
| 56 | logger.warn("Soot front failed to build method body for {}," + |
| 57 | " constructs an empty IR instead", method); |
| 58 | return new IRBuildHelper(method).buildEmpty(); |
| 59 | } else { |
| 60 | throw e; |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Builds IR for all methods in given class hierarchy. |
nothing calls this directly
no test coverage detected