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

Method tagToClass

src/jvm/clojure/lang/Compiler.java:1108–1125  ·  view source on GitHub ↗
(Object tag)

Source from the content-addressed store, hash-verified

1106
1107
1108 static Class tagToClass(Object tag) {
1109 Class c = null;
1110 if(tag instanceof Symbol)
1111 {
1112 Symbol sym = (Symbol) tag;
1113 if(sym.ns == null)
1114 {
1115 c = maybeSpecialTag(sym);
1116 }
1117 if(c == null)
1118 c = HostExpr.maybeArrayClass(sym);
1119 }
1120 if(c == null)
1121 c = maybeClass(tag, true);
1122 if(c != null)
1123 return c;
1124 throw new IllegalArgumentException("Unable to resolve classname: " + tag);
1125 }
1126
1127 public static boolean looksLikeArrayClass(Symbol sym) {
1128 return sym.ns != null && Util.isPosDigit(sym.name);

Callers 15

getJavaClassMethod · 0.95
QualifiedMethodExprMethod · 0.95
tagsToClassesMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95
getJavaClassMethod · 0.95

Calls 3

maybeSpecialTagMethod · 0.95
maybeArrayClassMethod · 0.95
maybeClassMethod · 0.95

Tested by

no test coverage detected