public class Namespace extends AReference implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.atomic.AtomicReference<IPersistentMap> |
aliases |
(package private) java.util.concurrent.atomic.AtomicReference<IPersistentMap> |
mappings |
Symbol |
name |
(package private) static java.util.concurrent.ConcurrentHashMap<Symbol,Namespace> |
namespaces |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(Symbol alias,
Namespace ns) |
static ISeq |
all() |
static boolean |
areDifferentInstancesOfSameClassName(java.lang.Class cls1,
java.lang.Class cls2) |
static Namespace |
find(Symbol name) |
Var |
findInternedVar(Symbol symbol) |
static Namespace |
findOrCreate(Symbol name) |
IPersistentMap |
getAliases() |
java.lang.Object |
getMapping(Symbol name) |
IPersistentMap |
getMappings() |
Symbol |
getName() |
java.lang.Class |
importClass(java.lang.Class c) |
java.lang.Class |
importClass(Symbol sym,
java.lang.Class c) |
Var |
intern(Symbol sym) |
Namespace |
lookupAlias(Symbol alias) |
private java.lang.Object |
readResolve() |
Var |
refer(Symbol sym,
Var var) |
(package private) java.lang.Object |
reference(Symbol sym,
java.lang.Object val) |
(package private) java.lang.Class |
referenceClass(Symbol sym,
java.lang.Class val) |
static Namespace |
remove(Symbol name) |
void |
removeAlias(Symbol alias) |
java.lang.String |
toString() |
void |
unmap(Symbol sym) |
private void |
warnOrFailOnReplace(Symbol sym,
java.lang.Object o,
java.lang.Object v) |
alterMeta, meta, resetMeta
public final Symbol name
final transient java.util.concurrent.atomic.AtomicReference<IPersistentMap> mappings
final transient java.util.concurrent.atomic.AtomicReference<IPersistentMap> aliases
Namespace(Symbol name)
public java.lang.String toString()
toString
in class java.lang.Object
public static ISeq all()
public Symbol getName()
public IPersistentMap getMappings()
private void warnOrFailOnReplace(Symbol sym, java.lang.Object o, java.lang.Object v)
java.lang.Object reference(Symbol sym, java.lang.Object val)
public static boolean areDifferentInstancesOfSameClassName(java.lang.Class cls1, java.lang.Class cls2)
java.lang.Class referenceClass(Symbol sym, java.lang.Class val)
public void unmap(Symbol sym)
public java.lang.Class importClass(Symbol sym, java.lang.Class c)
public java.lang.Class importClass(java.lang.Class c)
public java.lang.Object getMapping(Symbol name)
public IPersistentMap getAliases()
public void removeAlias(Symbol alias)
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException