C# Class clojure.lang.Var

Represents a Var.

From the Clojure documentation:

"Vars provide a mechanism to refer to a mutable storage location that can be dynamically rebound (to a new storage location) on a per-thread basis. Every Var can (but needn't) have a root binding, which is a binding that is shared by all threads that do not have a per-thread binding."
Inheritance: ARef, IFn, IRef, Settable
Afficher le fichier Open project: clojure/clojure-clr Class Usage Examples

Private Properties

Свойство Type Description
CommuteRoot void
GetFn IFn
UnbindRoot void
Var System
Var System
alter object
alterRoot object
bindRoot void
cloneThreadBindingFrame Object
create Var
create Var
find Var
get object
getRawRoot object
getTag object
getThreadBinding TBox
getThreadBindingFrame Object
getThreadBindings Associative
hasRoot bool
intern Var
intern Var
intern Var
intern Var
internPrivate Var
isDynamic bool
popThreadBindings void
pushThreadBindings void
resetThreadBindingFrame void
set object
setDynamic Var
setDynamic Var
setMacro void
setMeta void
setTag void
swapRoot void

Méthodes publiques

Méthode Description
ToString ( ) : string

Return a string representing this var.

applyTo ( ISeq arglist ) : object
deref ( ) : object

Gets the (immutable) value the reference is holding.

doReset ( object val ) : object

Sets the root value.

doSet ( object val ) : object

Sets the value.

Can only be called with a binding on the stack, else throws an exception.

invoke ( ) : object
invoke ( object arg1 ) : object
invoke ( object arg1, object arg2 ) : object
invoke ( object arg1, object arg2, object arg3 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18, object arg19 ) : object
invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18, object arg19, object arg20 ) : object
setValidator ( IFn vf ) : void

Sets the validator.

Private Methods

Méthode Description
CommuteRoot ( IFn fn ) : void
GetFn ( ) : IFn
UnbindRoot ( ) : void
Var ( Namespace ns, Symbol sym ) : System

Construct a var in a given namespace with a given name.

Var ( Namespace ns, Symbol sym, object root ) : System

Construct a var in a given namespace with a given name and root value.

alter ( IFn fn, ISeq args ) : object
alterRoot ( IFn fn, ISeq args ) : object
bindRoot ( object root ) : void
cloneThreadBindingFrame ( ) : Object
create ( ) : Var
create ( object root ) : Var
find ( Symbol nsQualifiedSym ) : Var
get ( ) : object
getRawRoot ( ) : object
getTag ( ) : object
getThreadBinding ( ) : TBox
getThreadBindingFrame ( ) : Object
getThreadBindings ( ) : Associative
hasRoot ( ) : bool
intern ( Namespace ns, Symbol sym ) : Var
intern ( Namespace ns, Symbol sym, object root ) : Var
intern ( Namespace ns, Symbol sym, object root, bool replaceRoot ) : Var
intern ( Symbol nsName, Symbol sym ) : Var
internPrivate ( string nsName, String sym ) : Var
isDynamic ( ) : bool
popThreadBindings ( ) : void
pushThreadBindings ( Associative bindings ) : void
resetThreadBindingFrame ( Object frame ) : void
set ( object val ) : object
setDynamic ( ) : Var
setDynamic ( bool b ) : Var
setMacro ( ) : void
setMeta ( IPersistentMap m ) : void
setTag ( Symbol tag ) : void
swapRoot ( object root ) : void

Method Details

ToString() public méthode

Return a string representing this var.
public ToString ( ) : string
Résultat string

applyTo() public méthode

public applyTo ( ISeq arglist ) : object
arglist ISeq
Résultat object

deref() public méthode

Gets the (immutable) value the reference is holding.
public deref ( ) : object
Résultat object

doReset() public méthode

Sets the root value.
public doReset ( object val ) : object
val object The new value
Résultat object

doSet() public méthode

Sets the value.
Can only be called with a binding on the stack, else throws an exception.
public doSet ( object val ) : object
val object The new value
Résultat object

invoke() public méthode

public invoke ( ) : object
Résultat object

invoke() public méthode

public invoke ( object arg1 ) : object
arg1 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2 ) : object
arg1 object
arg2 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3 ) : object
arg1 object
arg2 object
arg3 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
arg16 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
arg16 object
arg17 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
arg16 object
arg17 object
arg18 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18, object arg19 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
arg16 object
arg17 object
arg18 object
arg19 object
Résultat object

invoke() public méthode

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13, object arg14, object arg15, object arg16, object arg17, object arg18, object arg19, object arg20 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
arg6 object
arg7 object
arg8 object
arg9 object
arg10 object
arg11 object
arg12 object
arg13 object
arg14 object
arg15 object
arg16 object
arg17 object
arg18 object
arg19 object
arg20 object
Résultat object

setValidator() public méthode

Sets the validator.
public setValidator ( IFn vf ) : void
vf IFn The new validtor
Résultat void