()
| 181 | } |
| 182 | |
| 183 | public IR getIR() { |
| 184 | if (ir == null) { |
| 185 | if (isAbstract()) { |
| 186 | throw new AnalysisException("Abstract method " + this + |
| 187 | " has no method body"); |
| 188 | } |
| 189 | if (isNative()) { |
| 190 | ir = World.get().getNativeModel().buildNativeIR(this); |
| 191 | } else { |
| 192 | ir = World.get().getIRBuilder().buildIR(this); |
| 193 | } |
| 194 | } |
| 195 | return ir; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * @return the {@link MethodRef} pointing to this method. |