| java.lang.Object gnu.mapping.Namespace
All known Subclasses: gnu.kawa.xml.XmlNamespace, gnu.kawa.lispexpr.ClassNamespace, gnu.kawa.lispexpr.LispPackage,
Namespace | public class Namespace implements Externalizable,HasNamedParts(Code) | | A mapping from strings ("print names") to Symbol s.
Namespaces are normally named and can be accessed from a global table.
They correspond to Common Lisp "packages" (which are implemented
using gnu.kawa.lispexpr.LispPackage ,
which extends Namespace ).
A Namespace is a "weak" mapping in the sense that a
Symbol can be garbage collected even though it is
referenced from a Namespace .
author: Per Bothner |
EmptyNamespace | final public static Namespace EmptyNamespace(Code) | | The Namespace with the empty name.
|
nsTable | final protected static Hashtable nsTable(Code) | | Map namepsace names (and nick-names) to Namespaces.
|
num_bindings | int num_bindings(Code) | | |
table | protected SymbolRef[] table(Code) | | |
Namespace | public Namespace()(Code) | | |
Namespace | public Namespace(int capacity)(Code) | | |
getName | final public String getName()(Code) | | Get the name of this Namespace.
|
getSymbol | public Symbol getSymbol(String key)(Code) | | 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)(Code) | | Get a Symbol matching the given name.
Returns null if one is not found.
|
rehash | protected void rehash()(Code) | | |
setName | final public void setName(String name)(Code) | | Set the name of this Namespace.
|
|
|