MCPcopy Index your code
hub / github.com/clojure/clojure / maybeJavaClass

Method maybeJavaClass

src/jvm/clojure/lang/Compiler.java:1808–1832  ·  view source on GitHub ↗
(Collection<Expr> exprs)

Source from the content-addressed store, hash-verified

1806}
1807
1808static 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
1835static abstract class MethodExpr extends HostExpr{

Callers 1

CaseExprMethod · 0.80

Calls 2

hasJavaClassMethod · 0.65
getJavaClassMethod · 0.65

Tested by

no test coverage detected