| 13 | package clojure.lang; |
| 14 | |
| 15 | public class AReference implements IReference { |
| 16 | private IPersistentMap _meta; |
| 17 | |
| 18 | public AReference() { |
| 19 | this(null); |
| 20 | } |
| 21 | |
| 22 | public AReference(IPersistentMap meta) { |
| 23 | _meta = meta; |
| 24 | } |
| 25 | |
| 26 | synchronized public IPersistentMap meta() { |
| 27 | return _meta; |
| 28 | } |
| 29 | |
| 30 | synchronized public IPersistentMap alterMeta(IFn alter, ISeq args) { |
| 31 | _meta = (IPersistentMap) alter.applyTo(new Cons(_meta, args)); |
| 32 | return _meta; |
| 33 | } |
| 34 | |
| 35 | synchronized public IPersistentMap resetMeta(IPersistentMap m) { |
| 36 | _meta = m; |
| 37 | return m; |
| 38 | } |
| 39 | |
| 40 | } |
nothing calls this directly
no outgoing calls
no test coverage detected