C# Class clojure.lang.Namespace

Inheritance: clojure.lang.AReference, ISerializable
Show file Open project: richhickey/clojure-clr Class Usage Examples

Private Properties

Property Type Description
GetObjectData void
Namespace System
ReferenceClass System.Type
WarnOrFailOnReplace void
addAlias void
find Namespace
findOrCreate Namespace
getAliases IPersistentMap
getMappings IPersistentMap
getName Symbol
importClass System.Type
importClass System.Type
intern Var
refer Var
reference object
remove Namespace
removeAlias void
unmap void

Public Methods

Method Description
AreDifferentInstancesOfSameClassName ( Type t1, Type t2 ) : bool
FindInternedVar ( Symbol sym ) : Var

Find the Var mapped to a Symbol.

GetMapping ( Symbol name ) : object

Get the value mapped to a symbol.

LookupAlias ( Symbol alias ) : Namespace

Find the Namespace aliased by a Symbol.

ToString ( ) : string

Returns a string representing the namespace.

Private Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Namespace ( Symbol name ) : System

Construct a namespace with a given name.

ReferenceClass ( Symbol sym, Type val ) : Type
WarnOrFailOnReplace ( Symbol sym, object o, object v ) : void
addAlias ( Symbol alias, Namespace ns ) : void
find ( Symbol name ) : Namespace
findOrCreate ( Symbol name ) : Namespace
getAliases ( ) : IPersistentMap
getMappings ( ) : IPersistentMap
getName ( ) : Symbol
importClass ( Symbol sym, Type t ) : Type
importClass ( Type t ) : Type
intern ( Symbol sym ) : Var
refer ( Symbol sym, Var var ) : Var
reference ( Symbol sym, object val ) : object

Intern a symbol with a specified value.

remove ( Symbol name ) : Namespace
removeAlias ( Symbol alias ) : void
unmap ( Symbol sym ) : void

Method Details

AreDifferentInstancesOfSameClassName() public static method

public static AreDifferentInstancesOfSameClassName ( Type t1, Type t2 ) : bool
t1 System.Type
t2 System.Type
return bool

FindInternedVar() public method

Find the Var mapped to a Symbol.
public FindInternedVar ( Symbol sym ) : Var
sym Symbol The symbol to look up.
return Var

GetMapping() public method

Get the value mapped to a symbol.
public GetMapping ( Symbol name ) : object
name Symbol The symbol to look up.
return object

LookupAlias() public method

Find the Namespace aliased by a Symbol.
public LookupAlias ( Symbol alias ) : Namespace
alias Symbol The symbol alias.
return Namespace

ToString() public method

Returns a string representing the namespace.
public ToString ( ) : string
return string