// Constructor.
	internal BaseVsaEngine(String language, String version, bool supportDebug)
			{
				applicationPath = String.Empty;
				assemblyVersion = version;
				compiledRootNamespace = null;
				engineMoniker = String.Empty;
				engineName = String.Empty;
				engineSite = null;
				errorLocale = CultureInfo.CurrentCulture.LCID;
				executionEvidence = null;
				failedCompilation = false;
				genDebugInfo = false;
				haveCompiledState = false;
				isClosed = false;
				isDebugInfoSupported = supportDebug;
				isEngineCompiled = false;
				isEngineDirty = false;
				isEngineInitialized = false;
				isEngineRunning = false;
				loadedAssembly = null;
				rootNamespace = String.Empty;
				scriptLanguage = language;
				startupClass = null;
				startupInstance = null;
				vsaItems = null;
			}
Exemplo n.º 2
0
        public BaseVsaEngine(string language, string version, bool supportDebug)
        {
            this.language = language;

            // FIXME: I think we must ensure that version it's
            // compliant with versionformat Major.Minor.Build.Revision.
            // Not sure about what Exception throw.
            this.version = version;

            this.supportDebug = supportDebug;
            this.site         = null;
            this.rootMoniker  = "";
            this.running      = false;
            this.evidence     = null;
            this.compiled     = false;
            this.dirty        = false;

            this.lcid = Thread.CurrentThread.CurrentCulture.LCID;
            this.name = "";

            this.rootNamespace   = "";
            this.namespaceNotSet = true;

            this.initNewCalled     = false;
            this.generateDebugInfo = false;
            this.closed            = false;
            this.items             = null;
            this.siteAlreadySet    = false;
        }
Exemplo n.º 3
0
        // === Constructor ===

        public BaseVsaEngine(string language, string version, bool supportDebug)
        {
            // Set default property values and initial state
            this.applicationPath       = "";
            this.compiledRootNamespace = null;
            this.genDebugInfo          = false;
            this.haveCompiledState     = false;
            this.failedCompilation     = false;
            this.isClosed            = false;
            this.isEngineCompiled    = false;
            this.isEngineDirty       = false;
            this.isEngineInitialized = false;
            this.isEngineRunning     = false;
            this.vsaItems            = null;
            this.engineSite          = null;
            this.errorLocale         = CultureInfo.CurrentCulture.LCID;
            this.engineName          = "";
            this.rootNamespace       = "";
            this.engineMoniker       = "";

            // Set implementation-dependent values
            this.scriptLanguage       = language;
            this.assemblyVersion      = version;
            this.isDebugInfoSupported = supportDebug;
            this.executionEvidence    = null;
        }
Exemplo n.º 4
0
    // === Constructor ===

    public BaseVsaEngine(string language, string version, bool supportDebug){
      // Set default property values and initial state
      this.applicationPath = "";
      this.compiledRootNamespace = null;
      this.genDebugInfo = false;
      this.haveCompiledState = false;
      this.failedCompilation = false;
      this.isClosed = false;
      this.isEngineCompiled = false;
      this.isEngineDirty = false;
      this.isEngineInitialized = false;
      this.isEngineRunning = false;
      this.vsaItems = null;
      this.engineSite = null;
      this.errorLocale = CultureInfo.CurrentCulture.LCID;
      this.engineName = "";
      this.rootNamespace = "";
      this.engineMoniker = "";

      // Set implementation-dependent values
      this.scriptLanguage = language;
      this.assemblyVersion = version;
      this.isDebugInfoSupported = supportDebug;
      this.executionEvidence = null;
    }
Exemplo n.º 5
0
 // Constructor.
 internal BaseVsaEngine(String language, String version, bool supportDebug)
 {
     applicationPath       = String.Empty;
     assemblyVersion       = version;
     compiledRootNamespace = null;
     engineMoniker         = String.Empty;
     engineName            = String.Empty;
     engineSite            = null;
     errorLocale           = CultureInfo.CurrentCulture.LCID;
     executionEvidence     = null;
     failedCompilation     = false;
     genDebugInfo          = false;
     haveCompiledState     = false;
     isClosed             = false;
     isDebugInfoSupported = supportDebug;
     isEngineCompiled     = false;
     isEngineDirty        = false;
     isEngineInitialized  = false;
     isEngineRunning      = false;
     loadedAssembly       = null;
     rootNamespace        = String.Empty;
     scriptLanguage       = language;
     startupClass         = null;
     startupInstance      = null;
     vsaItems             = null;
 }
Exemplo n.º 6
0
 // Initialize a VSA engine in a non-VSA mode manually.
 // Use "CreateEngine" instead of this.
 public void InitVsaEngine(String rootMoniker, IVsaSite site)
 {
     rootNamespace       = "JScript.DefaultNamespace";
     engineMoniker       = rootMoniker;
     engineSite          = site;
     isEngineDirty       = true;
     isEngineCompiled    = false;
     isEngineInitialized = true;
 }
Exemplo n.º 7
0
 public void InitVsaEngine(string moniker, IVsaSite site)
 {
     RootMoniker   = moniker;
     Site          = site;
     InitNewCalled = true;
     RootNamespace = "JScript.DefaultNamespace";
     IsDirty       = true;
     compiled      = false;
 }
Exemplo n.º 8
0
Arquivo: Vsa.cs Projeto: ForNeVeR/pnet
 public void Close()
 {
     site = null;
     Reset();
 }
Exemplo n.º 9
0
 public void SetSite(IVsaSite site){
   this.site = site;
 }
Exemplo n.º 10
0
		public void InitVsaEngine (string moniker, IVsaSite site)
		{
			RootMoniker = moniker;
			Site = site;
			InitNewCalled = true;
			RootNamespace = "JScript.DefaultNamespace";
			IsDirty = true;
			compiled = false;
		}
Exemplo n.º 11
0
 public void SetSite(IVsaSite site)
 {
     this.site = site;
 }
Exemplo n.º 12
0
	public void Close()
			{
				site = null;
				Reset();
			}
Exemplo n.º 13
0
 public void SetSite(IVsaSite site)
 {
     throw new NotImplementedException();
 }
 // Methods
 public void SetSite(IVsaSite site)
 {
 }
Exemplo n.º 15
0
	// Initialize a VSA engine in a non-VSA mode manually.
	// Use "CreateEngine" instead of this.
	public void InitVsaEngine(String rootMoniker, IVsaSite site)
			{
				rootNamespace = "JScript.DefaultNamespace";
				engineMoniker = rootMoniker;
				engineSite = site;
				isEngineDirty = true;
				isEngineCompiled = false;
				isEngineInitialized = true;
			}
Exemplo n.º 16
0
 // Constructor.
 public CodeBase(String name, IVsaItem item)
 {
     this.name = name;
     this.item = item;
     this.site = null;
 }
Exemplo n.º 17
0
	public CodeBase(String name, IVsaItem item, IVsaSite site)
			{
				this.name = name;
				this.item = item;
				this.site = site;
			}
Exemplo n.º 18
0
 public CodeBase(String name, IVsaItem item, IVsaSite site)
 {
     this.name = name;
     this.item = item;
     this.site = site;
 }
	// Methods
	public void SetSite(IVsaSite site) {}
Exemplo n.º 20
0
		public BaseVsaEngine (string language, string version, bool supportDebug)
		{
			this.language = language;

			// FIXME: I think we must ensure that version it's 
			// compliant with versionformat Major.Minor.Build.Revision. 
			// Not sure about what Exception throw.
			this.version = version;

			this.supportDebug = supportDebug;
			this.site = null;
			this.rootMoniker = "";
			this.running = false;
			this.evidence = null;
			this.compiled = false;
			this.dirty = false;

			this.lcid = Thread.CurrentThread.CurrentCulture.LCID;
			this.name = "";
			
			this.rootNamespace = "";
			this.namespaceNotSet = true;	

			this.initNewCalled = false;
			this.generateDebugInfo = false;
			this.closed = false;
			this.items = null;
			this.siteAlreadySet = false;
		}
Exemplo n.º 21
0
		public void SetSite (IVsaSite site)
		{
			throw new NotImplementedException ();
		}
Exemplo n.º 22
0
 // Use this method to initialize the engine for non-VSA use.  This includes JSC, JSTest, and the JSEE.
 public void InitVsaEngine(string rootMoniker, IVsaSite site){
   this.genStartupClass = false;
   this.engineMoniker = rootMoniker;
   this.engineSite = site;
   this.isEngineInitialized = true;
   this.rootNamespace = "JScript.DefaultNamespace";
   this.isEngineDirty = true;
   this.isEngineCompiled = false;
 }
Exemplo n.º 23
0
	// Constructor.
	public CodeBase(String name, IVsaItem item)
			{
				this.name = name;
				this.item = item;
				this.site = null;
			}