getDefault
public static Namespace getDefault()
getDefaultSymbol
public static Symbol getDefaultSymbol(String name)
getInstance
public static Namespace getInstance(String name)
getName
public final String getName()
Get the name of this Namespace.
getSymbol
public Symbol getSymbol(String key)
Get a Symbol matching the given name.
Creates a new Symbol if one is not found.
Equivalent to Common Lisp's "intern" function.
lookup
public Symbol lookup(String key)
Get a Symbol matching the given name.
Returns null if one is not found.
lookup
public Symbol lookup(String key,
int hash,
boolean create)
lookupInternal
protected final Symbol lookupInternal(String key,
int hash)
make
public static Namespace make(String name)
make
public static Namespace make(String uri,
String prefix)
makeUnknownNamespace
public static Namespace makeUnknownNamespace(String prefix)
Create a "placeholder" for a namespace with a known prefix
but unknown uri.
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readResolve
public Object readResolve()
throws ObjectStreamException
rehash
protected void rehash()
remove
public boolean remove(Symbol symbol)
setName
public final void setName(String name)
Set the name of this Namespace.
toString
public String toString()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException