C# Class clojure.lang.Symbol

Inheritance: AFn, IObj, Named, IComparable, ISerializable
Afficher le fichier Open project: richhickey/clojure-clr Class Usage Examples

Protected Properties

Свойство Type Description
_hash int
_name string
_ns string

Méthodes publiques

Méthode Description
CompareTo ( object obj ) : int

Compare this symbol to another object.

Equals ( object obj ) : bool

Determine if an object is equal to this symbol.

Uses value semantics, value determined by namespace name and symbol name.

GetHashCode ( ) : int

Get the hash code.

ToString ( ) : string

Return a string representing the symbol.

getName ( ) : string

Gets the symbol name.

getNamespace ( ) : string

Get the namespace name.

meta ( ) : IPersistentMap
operator ( ) : bool
withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Méthodes protégées

Méthode Description
Symbol ( SerializationInfo info, StreamingContext context ) : System

Construct a Symbol during deserialization.

Private Methods

Méthode Description
ComputeHashCode ( ) : int

Compute the hash code for the symbol.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Symbol ( IPersistentMap meta, string ns_interned, string name_interned ) : System

Construct a symbol from interned namespace name and symbol name, with given metadata.

Symbol ( string ns_interned, string name_interned ) : System

Construct a symbol from interned namespace name and symbol name.

create ( String nsname ) : Symbol
create ( String ns, String name ) : Symbol
intern ( string nsname ) : Symbol
intern ( string ns, string name ) : Symbol
invoke ( Object obj ) : object
invoke ( Object obj, Object notFound ) : object

Method Details

CompareTo() public méthode

Compare this symbol to another object.
public CompareTo ( object obj ) : int
obj object The object to compare to.
Résultat int

Equals() public méthode

Determine if an object is equal to this symbol.
Uses value semantics, value determined by namespace name and symbol name.
public Equals ( object obj ) : bool
obj object The object to compare to.
Résultat bool

GetHashCode() public méthode

Get the hash code.
public GetHashCode ( ) : int
Résultat int

Symbol() protected méthode

Construct a Symbol during deserialization.
protected Symbol ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Résultat System

ToString() public méthode

Return a string representing the symbol.
public ToString ( ) : string
Résultat string

getName() public méthode

Gets the symbol name.
public getName ( ) : string
Résultat string

getNamespace() public méthode

Get the namespace name.
public getNamespace ( ) : string
Résultat string

meta() public méthode

public meta ( ) : IPersistentMap
Résultat IPersistentMap

operator() public static méthode

public static operator ( ) : bool
Résultat bool

withMeta() public méthode

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
Résultat IObj

Property Details

_hash protected_oe property

The cached hashcode.
protected int _hash
Résultat int

_name protected_oe property

The name of the symbol.
This string must be interned.
protected string _name
Résultat string

_ns protected_oe property

The name of the namespace for this symbol (if namespace-qualified).
This string must be interned.
protected string _ns
Résultat string