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

Method set

src/jvm/clojure/lang/Var.java:219–229  ·  view source on GitHub ↗
(Object val)

Source from the content-addressed store, hash-verified

217}
218
219public Object set(Object val){
220 validate(getValidator(), val);
221 TBox b = getThreadBinding();
222 if(b != null)
223 {
224 if(Thread.currentThread() != b.thread)
225 throw new IllegalStateException(String.format("Can't set!: %s from non-binding thread", sym));
226 return (b.val = val);
227 }
228 throw new IllegalStateException(String.format("Can't change/establish root binding of: %s with set", sym));
229}
230
231public Object doSet(Object val) {
232 return set(val);

Callers 5

alterMethod · 0.95
doSetMethod · 0.95
pushThreadBindingsMethod · 0.45
popThreadBindingsMethod · 0.45

Calls 4

getThreadBindingMethod · 0.95
validateMethod · 0.80
formatMethod · 0.80
getValidatorMethod · 0.65

Tested by

no test coverage detected