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

Method classChar

src/jvm/clojure/lang/Compiler.java:5881–5894  ·  view source on GitHub ↗
(Object x)

Source from the content-addressed store, hash-verified

5879 }
5880
5881 static public char classChar(Object x){
5882 Class c = null;
5883 if(x instanceof Class)
5884 c = (Class) x;
5885 else if(x instanceof Symbol)
5886 c = primClass((Symbol) x);
5887 if(c == null || !c.isPrimitive())
5888 return 'O';
5889 if(c == long.class)
5890 return 'L';
5891 if(c == double.class)
5892 return 'D';
5893 throw new IllegalArgumentException("Only long and double primitives are supported");
5894 }
5895
5896 static public String primInterface(IPersistentVector arglist) {
5897 StringBuilder sb = new StringBuilder();

Callers 1

primInterfaceMethod · 0.95

Calls 2

primClassMethod · 0.80
isPrimitiveMethod · 0.80

Tested by

no test coverage detected