ver"; creates a namespace definition whose base name is
"ns"
, whose namespace reference is to the
public
namespace, and whose type reference is
null
.
A user-defined namespace definition is contained within a file scope, a package scope, a class scope, an interface scope, or a function scope; it does not contain a scope.
There are also builtin namespace definitions for public
, protected
, private
, and internal
namespaces.
NamespaceDefinition.getPublicNamespaceDefinition()
is the singleton IPublicNamespaceDefinition
representing the public
namespace. All files share the same public namespace.
NamespaceDefinition.createPrivateNamespaceDefinition()
returns an IPrivateNamespaceDefinition
representing the private
namespace for a particular file. Different files have different private namespaces.
NamespaceDefinition.createProtectedNamespaceDefinition()
returns an IProtectedNamespaceDefinition
representing the protected
namespace for a particular file. Different fiels have different protected namespaces.
NamespaceDefinition.createInternalNamespaceDefinition
returns an IInternalNamespaceDefinition
representing the internal
naemspace for a particular package. Different packages have different internal namespaces.