C# Class clojure.lang.Keyword

Inheritance: AFn, Named, IComparable, ISerializable, IHashEq
显示文件 Open project: richhickey/clojure-clr Class Usage Examples

Private Properties

Property Type Description
GetObjectData void
Keyword System
find Keyword
find Keyword
find Keyword
intern Keyword
intern Keyword
intern Keyword
invoke object

Public Methods

Method Description
CompareTo ( object obj ) : int

Compare this to another object.

Equals ( object obj ) : bool

Determines if an object is equal to this keyword. Value semantics.

GetHashCode ( ) : int

Gets a hash code for the keyword.

ToString ( ) : string

Returns a string representing the keyword.

getName ( ) : string

Gets the name.

getNamespace ( ) : string

Gets the namespace name.

invoke ( object arg1 ) : object

(:keyword arg) => (get arg :keyword)

operator ( ) : bool

Private Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Keyword ( Symbol sym ) : System

Construct a keyword based on a symbol.

find ( String nsname ) : Keyword
find ( String ns, String name ) : Keyword
find ( Symbol sym ) : Keyword
intern ( String nsname ) : Keyword
intern ( Symbol sym ) : Keyword
intern ( string ns, string name ) : Keyword
invoke ( object arg1, object notFound ) : object

Method Details

CompareTo() public method

Compare this to another object.
public CompareTo ( object obj ) : int
obj object The object to compare to.
return int

Equals() public method

Determines if an object is equal to this keyword. Value semantics.
public Equals ( object obj ) : bool
obj object The object to compare to.
return bool

GetHashCode() public method

Gets a hash code for the keyword.
public GetHashCode ( ) : int
return int

ToString() public method

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

getName() public method

Gets the name.
public getName ( ) : string
return string

getNamespace() public method

Gets the namespace name.
public getNamespace ( ) : string
return string

invoke() public final method

(:keyword arg) => (get arg :keyword)
public final invoke ( object arg1 ) : object
arg1 object The object to access.
return object

operator() public static method

public static operator ( ) : bool
return bool