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
Exibir arquivo Open project: clojure/clojure-clr Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

Return a string representing this var.
public ToString ( ) : string
return string

applyTo() public method

public applyTo ( ISeq arglist ) : object
arglist ISeq
return object

deref() public method

Gets the (immutable) value the reference is holding.
public deref ( ) : object
return object

doReset() public method

Sets the root value.
public doReset ( object val ) : object
val object The new value
return object

doSet() public method

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
return object

invoke() public method

public invoke ( ) : object
return object

invoke() public method

public invoke ( object arg1 ) : object
arg1 object
return object

invoke() public method

public invoke ( object arg1, object arg2 ) : object
arg1 object
arg2 object
return object

invoke() public method

public invoke ( object arg1, object arg2, object arg3 ) : object
arg1 object
arg2 object
arg3 object
return object

invoke() public method

public invoke ( object arg1, object arg2, object arg3, object arg4 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
return object

invoke() public method

public invoke ( object arg1, object arg2, object arg3, object arg4, object arg5 ) : object
arg1 object
arg2 object
arg3 object
arg4 object
arg5 object
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

invoke() public method

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
return object

setValidator() public method

Sets the validator.
public setValidator ( IFn vf ) : void
vf IFn The new validtor
return void