C# Class Microsoft.JScript.Vsa.VsaEngine

Inheritance: BaseVsaEngine, IEngine2, IRedirectOutput
Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
AddChildAndValue void
AddPackage void
AddReferences void
CheckForErrors void
CheckIdentifierForCLSCompliance bool
CheckTypeNameForCLSCompliance void
Clone IVsaEngine
CompileEmpty bool
ConnectEvents void
CreateAttribute void
CreateEngineForDebugger VsaEngine
CreateEntryPointIL void
CreateEntryPointIL void
CreateHostCallbackIL void
CreateMain void
CreateShutdownIL void
CreateStartupClass void
DisconnectEvents void
EmitReferences void
EnsureReflectionOnlyModulesLoaded void
FindAssembly String
GenerateRandomPEFileName string
GetAssembly System.Reflection.Assembly
GetClass Microsoft.JScript.ClassScope
GetItem IVsaItem
GetItemAtIndex IVsaItem
GetItemCount int
GetScannerInstance Microsoft.JScript.JSScanner
GetStaticCodeBlockCount int
GetType System.Type
GetVersionString string
InitVsaEngine void
Interrupt void
IsValidIdentifier bool
LoadCustomOptions void
LoadManagedResources void
LoadProjectVersion System.Version
LoadUserDefines void
LoadVsaEngineState void
LoadVsaItems void
OnCompilerError bool
RegisterEventSource void
Reset void
Restart void
Run void
RunEmpty void
SaveCustomOptions void
SaveManagedResources void
SaveProjectVersion void
SaveSourceForDebugging void
SaveUserDefines void
SaveVsaEngineState void
SaveVsaItems void
SetEnclosingContext void
SetUpCompilerEnvironment void
TryToAddImplicitAssemblyReference void
VsaEngine Microsoft.JScript

Public Methods

Method Description
CreateEngine ( ) : VsaEngine
CreateEngineAndGetGlobalScope ( bool fast, String assemblyNames ) : GlobalScope
CreateEngineAndGetGlobalScopeWithType ( bool fast, String assemblyNames, RuntimeTypeHandle callingTypeHandle ) : GlobalScope
CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace ( bool fast, String assemblyNames, RuntimeTypeHandle callingTypeHandle, string rootNamespace ) : GlobalScope
CreateEngineWithType ( RuntimeTypeHandle callingTypeHandle ) : VsaEngine
GetGlobalScope ( ) : IVsaScriptScope
GetMainScope ( ) : GlobalScope
GetModule ( ) : Module
GetOriginalArrayConstructor ( ) : ArrayConstructor
GetOriginalObjectConstructor ( ) : ObjectConstructor
GetOriginalRegExpConstructor ( ) : RegExpConstructor
PopScriptObject ( ) : ScriptObject
PushScriptObject ( ScriptObject obj ) : void
ScriptObjectStackTop ( ) : ScriptObject
SetOutputStream ( IMessageReceiver output ) : void
VsaEngine ( ) : Microsoft.JScript
VsaEngine ( bool fast ) : Microsoft.JScript

Protected Methods

Method Description
DoClose ( ) : void
DoCompile ( ) : bool
DoLoadSourceState ( IVsaPersistSite site ) : void
DoSaveCompiledState ( byte &pe, byte &pdb ) : void
DoSaveSourceState ( IVsaPersistSite site ) : void
GetCustomOption ( String name ) : Object
IsValidNamespaceName ( string name ) : bool
LoadCompiledState ( ) : Assembly
ResetCompiledState ( ) : void
SetCustomOption ( String name, Object value ) : void
ValidateRootMoniker ( string rootMoniker ) : void

Private Methods

Method Description
AddChildAndValue ( XmlDocument doc, XmlElement parent, string name, string value ) : void
AddPackage ( PackageScope pscope ) : void
AddReferences ( ) : void
CheckForErrors ( ) : void
CheckIdentifierForCLSCompliance ( String name ) : bool
CheckTypeNameForCLSCompliance ( String name, String fullname, Context context ) : void
Clone ( AppDomain domain ) : IVsaEngine
CompileEmpty ( ) : bool
ConnectEvents ( ) : void
CreateAttribute ( XmlDocument doc, XmlElement elem, string name, string value ) : void
CreateEngineForDebugger ( ) : VsaEngine
CreateEntryPointIL ( ILGenerator il, FieldInfo site ) : void
CreateEntryPointIL ( ILGenerator il, FieldInfo site, TypeBuilder startupClass ) : void
CreateHostCallbackIL ( ILGenerator il, FieldInfo site ) : void
CreateMain ( ) : void
CreateShutdownIL ( ILGenerator il ) : void
CreateStartupClass ( ) : void
DisconnectEvents ( ) : void
EmitReferences ( ) : void
EnsureReflectionOnlyModulesLoaded ( ) : void
FindAssembly ( String name ) : String
GenerateRandomPEFileName ( ) : string
GetAssembly ( ) : Assembly
GetClass ( String className ) : ClassScope
GetItem ( String itemName ) : IVsaItem
GetItemAtIndex ( int index ) : IVsaItem
GetItemCount ( ) : int
GetScannerInstance ( string name ) : JSScanner
GetStaticCodeBlockCount ( ) : int
GetType ( String typeName ) : Type
GetVersionString ( ) : string
InitVsaEngine ( string rootMoniker, IVsaSite site ) : void
Interrupt ( ) : void
IsValidIdentifier ( string ident ) : bool
LoadCustomOptions ( XmlElement parent ) : void
LoadManagedResources ( XmlElement parent ) : void
LoadProjectVersion ( XmlElement root ) : System.Version
LoadUserDefines ( XmlElement parent ) : void
LoadVsaEngineState ( XmlElement parent ) : void
LoadVsaItems ( XmlElement parent ) : void
OnCompilerError ( JScriptException se ) : bool
RegisterEventSource ( String name ) : void
Reset ( ) : void
Restart ( ) : void
Run ( AppDomain domain ) : void
RunEmpty ( ) : void
SaveCustomOptions ( XmlDocument project, XmlElement parent ) : void
SaveManagedResources ( XmlDocument project, XmlElement parent ) : void
SaveProjectVersion ( XmlDocument project, XmlElement root ) : void
SaveSourceForDebugging ( ) : void
SaveUserDefines ( XmlDocument project, XmlElement parent ) : void
SaveVsaEngineState ( XmlDocument project, XmlElement parent ) : void
SaveVsaItems ( XmlDocument project, XmlElement parent ) : void
SetEnclosingContext ( ScriptObject ob ) : void
SetUpCompilerEnvironment ( ) : void
TryToAddImplicitAssemblyReference ( String name ) : void
VsaEngine ( Assembly runtimeAssembly ) : Microsoft.JScript

Method Details

CreateEngine() public static method

public static CreateEngine ( ) : VsaEngine
return VsaEngine

CreateEngineAndGetGlobalScope() public static method

public static CreateEngineAndGetGlobalScope ( bool fast, String assemblyNames ) : GlobalScope
fast bool
assemblyNames String
return Microsoft.JScript.GlobalScope

CreateEngineAndGetGlobalScopeWithType() public static method

public static CreateEngineAndGetGlobalScopeWithType ( bool fast, String assemblyNames, RuntimeTypeHandle callingTypeHandle ) : GlobalScope
fast bool
assemblyNames String
callingTypeHandle System.RuntimeTypeHandle
return Microsoft.JScript.GlobalScope

CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace() public static method

public static CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace ( bool fast, String assemblyNames, RuntimeTypeHandle callingTypeHandle, string rootNamespace ) : GlobalScope
fast bool
assemblyNames String
callingTypeHandle System.RuntimeTypeHandle
rootNamespace string
return Microsoft.JScript.GlobalScope

CreateEngineWithType() public static method

public static CreateEngineWithType ( RuntimeTypeHandle callingTypeHandle ) : VsaEngine
callingTypeHandle System.RuntimeTypeHandle
return VsaEngine

DoClose() protected method

protected DoClose ( ) : void
return void

DoCompile() protected method

protected DoCompile ( ) : bool
return bool

DoLoadSourceState() protected method

protected DoLoadSourceState ( IVsaPersistSite site ) : void
site IVsaPersistSite
return void

DoSaveCompiledState() protected method

protected DoSaveCompiledState ( byte &pe, byte &pdb ) : void
pe byte
pdb byte
return void

DoSaveSourceState() protected method

protected DoSaveSourceState ( IVsaPersistSite site ) : void
site IVsaPersistSite
return void

GetCustomOption() protected method

protected GetCustomOption ( String name ) : Object
name String
return Object

GetGlobalScope() public method

public GetGlobalScope ( ) : IVsaScriptScope
return IVsaScriptScope

GetMainScope() public method

public GetMainScope ( ) : GlobalScope
return Microsoft.JScript.GlobalScope

GetModule() public method

public GetModule ( ) : Module
return System.Reflection.Module

GetOriginalArrayConstructor() public method

public GetOriginalArrayConstructor ( ) : ArrayConstructor
return Microsoft.JScript.ArrayConstructor

GetOriginalObjectConstructor() public method

public GetOriginalObjectConstructor ( ) : ObjectConstructor
return Microsoft.JScript.ObjectConstructor

GetOriginalRegExpConstructor() public method

public GetOriginalRegExpConstructor ( ) : RegExpConstructor
return Microsoft.JScript.RegExpConstructor

IsValidNamespaceName() protected method

protected IsValidNamespaceName ( string name ) : bool
name string
return bool

LoadCompiledState() protected method

protected LoadCompiledState ( ) : Assembly
return System.Reflection.Assembly

PopScriptObject() public method

public PopScriptObject ( ) : ScriptObject
return Microsoft.JScript.ScriptObject

PushScriptObject() public method

public PushScriptObject ( ScriptObject obj ) : void
obj Microsoft.JScript.ScriptObject
return void

ResetCompiledState() protected method

protected ResetCompiledState ( ) : void
return void

ScriptObjectStackTop() public method

public ScriptObjectStackTop ( ) : ScriptObject
return Microsoft.JScript.ScriptObject

SetCustomOption() protected method

protected SetCustomOption ( String name, Object value ) : void
name String
value Object
return void

SetOutputStream() public method

public SetOutputStream ( IMessageReceiver output ) : void
output IMessageReceiver
return void

ValidateRootMoniker() protected method

protected ValidateRootMoniker ( string rootMoniker ) : void
rootMoniker string
return void

VsaEngine() public method

public VsaEngine ( ) : Microsoft.JScript
return Microsoft.JScript

VsaEngine() public method

public VsaEngine ( bool fast ) : Microsoft.JScript
fast bool
return Microsoft.JScript