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

Method isCongruent

src/jvm/clojure/lang/Reflector.java:677–693  ·  view source on GitHub ↗
(Class[] params, Object[] args)

Source from the content-addressed store, hash-verified

675}
676
677static boolean isCongruent(Class[] params, Object[] args){
678 boolean ret = false;
679 if(args == null)
680 return params.length == 0;
681 if(params.length == args.length)
682 {
683 ret = true;
684 for(int i = 0; ret && i < params.length; i++)
685 {
686 Object arg = args[i];
687 Class argType = (arg == null) ? null : arg.getClass();
688 Class paramType = params[i];
689 ret = paramArgTypeMatch(paramType, argType);
690 }
691 }
692 return ret;
693}
694
695public static Object prepRet(Class c, Object x){
696 if (!(c.isPrimitive() || c == Boolean.class))

Callers 2

matchMethodMethod · 0.95
invokeConstructorMethod · 0.95

Calls 1

paramArgTypeMatchMethod · 0.95

Tested by

no test coverage detected