(Object tag)
| 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); |
no test coverage detected