(Collection<Expr> exprs)
| 1806 | } |
| 1807 | |
| 1808 | static Class maybeJavaClass(Collection<Expr> exprs){ |
| 1809 | Class match = null; |
| 1810 | try |
| 1811 | { |
| 1812 | for (Expr e : exprs) |
| 1813 | { |
| 1814 | if (e instanceof ThrowExpr) |
| 1815 | continue; |
| 1816 | if (!e.hasJavaClass()) |
| 1817 | return null; |
| 1818 | Class c = e.getJavaClass(); |
| 1819 | if (c == null) |
| 1820 | return null; |
| 1821 | if (match == null) |
| 1822 | match = c; |
| 1823 | else if (match != c) |
| 1824 | return null; |
| 1825 | } |
| 1826 | } |
| 1827 | catch(Exception e) |
| 1828 | { |
| 1829 | return null; |
| 1830 | } |
| 1831 | return match; |
| 1832 | } |
| 1833 | |
| 1834 | |
| 1835 | static abstract class MethodExpr extends HostExpr{ |
no test coverage detected