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

Method validate

src/jvm/clojure/lang/ARef.java:29–43  ·  view source on GitHub ↗
(IFn vf, Object val)

Source from the content-addressed store, hash-verified

27}
28
29void validate(IFn vf, Object val){
30 try
31 {
32 if(vf != null && !RT.booleanCast(vf.invoke(val)))
33 throw new IllegalStateException("Invalid reference state");
34 }
35 catch(RuntimeException re)
36 {
37 throw re;
38 }
39 catch(Exception e)
40 {
41 throw new IllegalStateException("Invalid reference state", e);
42 }
43}
44
45void validate(Object val){
46 validate(validator, val);

Callers 15

setValidatorMethod · 0.95
setStateMethod · 0.80
restartMethod · 0.80
setValidatorMethod · 0.80
setMethod · 0.80
bindRootMethod · 0.80
swapRootMethod · 0.80
commuteRootMethod · 0.80
alterRootMethod · 0.80
pushThreadBindingsMethod · 0.80
runMethod · 0.80
swapMethod · 0.80

Calls 2

booleanCastMethod · 0.95
invokeMethod · 0.65

Tested by

no test coverage detected