C# Class Machete.Runtime.Environment

Inheritance: IEnvironment
Show file Open project: ChaosPandion/Machete

Public Methods

Method Description
BindFunctionDeclarations ( ReadOnlyList functionDeclarations, bool strict, bool configurableBindings ) : void
BindVariableDeclarations ( ReadOnlyList variableDeclarations, bool strict, bool configurableBindings ) : void
CheckObjectCoercible ( IDynamic value ) : void
CombineGeneratorWithIterator ( Generator generator, IDynamic other ) : bool
ConcatArgs ( IArgs first, IArgs second ) : IArgs
CreateAccessorDescriptor ( IDynamic get, IDynamic set, bool enumerable, bool configurable ) : IPropertyDescriptor
CreateArgs ( IEnumerable values ) : IArgs
CreateArray ( ) : IObject
CreateBoolean ( bool value ) : IBoolean
CreateDataDescriptor ( IDynamic value, bool writable, bool enumerable, bool configurable ) : IPropertyDescriptor
CreateError ( string message ) : MacheteRuntimeException
CreateEvalError ( string message ) : MacheteRuntimeException
CreateFunction ( ExecutableCode executableCode, ReadOnlyList formalParameters, ILexicalEnvironment scope ) : IObject
CreateGenericDescriptor ( bool enumerable, bool configurable ) : IPropertyDescriptor
CreateIterableFromGenerator ( ReadOnlyList steps, ReadOnlyList variableDeclarations, ILexicalEnvironment scope ) : IObject
CreateNumber ( double value ) : INumber
CreateObject ( ) : IObject
CreateObjectBuilder ( IObject o ) : IObjectBuilder
CreateRangeError ( string message ) : MacheteRuntimeException
CreateReference ( string name, IReferenceBase @base, bool strict ) : IReference
CreateReferenceError ( string message ) : MacheteRuntimeException
CreateRegExp ( string pattern, string flags ) : IObject
CreateString ( string value ) : IString
CreateSyntaxError ( string message ) : MacheteRuntimeException
CreateTypeError ( string message ) : MacheteRuntimeException
CreateUriError ( string message ) : MacheteRuntimeException
EnterContext ( ) : IExecutionContext
Environment ( ) : System
Execute ( ExecutableCode executableCode ) : IDynamic
ForeachLoop ( string identifier, IDynamic iterable, Code loopBodyCode ) : void
FromPropertyDescriptor ( IPropertyDescriptor desc ) : IDynamic
Instanceof ( IDynamic left, IDynamic right ) : bool
ThrowRuntimeException ( IDynamic thrown ) : void
ToPropertyDescriptor ( IObject obj ) : IPropertyDescriptor
Unwind ( ) : void

Method Details

BindFunctionDeclarations() public method

public BindFunctionDeclarations ( ReadOnlyList functionDeclarations, bool strict, bool configurableBindings ) : void
functionDeclarations ReadOnlyList
strict bool
configurableBindings bool
return void

BindVariableDeclarations() public method

public BindVariableDeclarations ( ReadOnlyList variableDeclarations, bool strict, bool configurableBindings ) : void
variableDeclarations ReadOnlyList
strict bool
configurableBindings bool
return void

CheckObjectCoercible() public method

public CheckObjectCoercible ( IDynamic value ) : void
value IDynamic
return void

CombineGeneratorWithIterator() public method

public CombineGeneratorWithIterator ( Generator generator, IDynamic other ) : bool
generator Machete.Core.Generators.Generator
other IDynamic
return bool

ConcatArgs() public method

public ConcatArgs ( IArgs first, IArgs second ) : IArgs
first IArgs
second IArgs
return IArgs

CreateAccessorDescriptor() public method

public CreateAccessorDescriptor ( IDynamic get, IDynamic set, bool enumerable, bool configurable ) : IPropertyDescriptor
get IDynamic
set IDynamic
enumerable bool
configurable bool
return IPropertyDescriptor

CreateArgs() public method

public CreateArgs ( IEnumerable values ) : IArgs
values IEnumerable
return IArgs

CreateArray() public method

public CreateArray ( ) : IObject
return IObject

CreateBoolean() public method

public CreateBoolean ( bool value ) : IBoolean
value bool
return IBoolean

CreateDataDescriptor() public method

public CreateDataDescriptor ( IDynamic value, bool writable, bool enumerable, bool configurable ) : IPropertyDescriptor
value IDynamic
writable bool
enumerable bool
configurable bool
return IPropertyDescriptor

CreateError() public method

public CreateError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateEvalError() public method

public CreateEvalError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateFunction() public method

public CreateFunction ( ExecutableCode executableCode, ReadOnlyList formalParameters, ILexicalEnvironment scope ) : IObject
executableCode Machete.Core.ExecutableCode
formalParameters ReadOnlyList
scope ILexicalEnvironment
return IObject

CreateGenericDescriptor() public method

public CreateGenericDescriptor ( bool enumerable, bool configurable ) : IPropertyDescriptor
enumerable bool
configurable bool
return IPropertyDescriptor

CreateIterableFromGenerator() public method

public CreateIterableFromGenerator ( ReadOnlyList steps, ReadOnlyList variableDeclarations, ILexicalEnvironment scope ) : IObject
steps ReadOnlyList
variableDeclarations ReadOnlyList
scope ILexicalEnvironment
return IObject

CreateNumber() public method

public CreateNumber ( double value ) : INumber
value double
return INumber

CreateObject() public method

public CreateObject ( ) : IObject
return IObject

CreateObjectBuilder() public method

public CreateObjectBuilder ( IObject o ) : IObjectBuilder
o IObject
return IObjectBuilder

CreateRangeError() public method

public CreateRangeError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateReference() public method

public CreateReference ( string name, IReferenceBase @base, bool strict ) : IReference
name string
@base IReferenceBase
strict bool
return IReference

CreateReferenceError() public method

public CreateReferenceError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateRegExp() public method

public CreateRegExp ( string pattern, string flags ) : IObject
pattern string
flags string
return IObject

CreateString() public method

public CreateString ( string value ) : IString
value string
return IString

CreateSyntaxError() public method

public CreateSyntaxError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateTypeError() public method

public CreateTypeError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

CreateUriError() public method

public CreateUriError ( string message ) : MacheteRuntimeException
message string
return Machete.Core.MacheteRuntimeException

EnterContext() public method

public EnterContext ( ) : IExecutionContext
return IExecutionContext

Environment() public method

public Environment ( ) : System
return System

Execute() public method

public Execute ( ExecutableCode executableCode ) : IDynamic
executableCode Machete.Core.ExecutableCode
return IDynamic

ForeachLoop() public method

public ForeachLoop ( string identifier, IDynamic iterable, Code loopBodyCode ) : void
identifier string
iterable IDynamic
loopBodyCode Code
return void

FromPropertyDescriptor() public method

public FromPropertyDescriptor ( IPropertyDescriptor desc ) : IDynamic
desc IPropertyDescriptor
return IDynamic

Instanceof() public method

public Instanceof ( IDynamic left, IDynamic right ) : bool
left IDynamic
right IDynamic
return bool

ThrowRuntimeException() public method

public ThrowRuntimeException ( IDynamic thrown ) : void
thrown IDynamic
return void

ToPropertyDescriptor() public method

public ToPropertyDescriptor ( IObject obj ) : IPropertyDescriptor
obj IObject
return IPropertyDescriptor

Unwind() public method

public Unwind ( ) : void
return void