Inheritance: FunctionPrototype
 internal ObjectConstructor(LenientFunctionPrototype parent, LenientObjectPrototype prototypeProp) : base(parent, "Object", 1)
 {
     this.originalPrototype = prototypeProp;
     prototypeProp.constructor = this;
     base.proto = prototypeProp;
     base.noExpando = false;
 }
 internal LenientErrorPrototype(LenientFunctionPrototype funcprot, ScriptObject parent, string name) : base(parent, name)
 {
     base.noExpando = false;
     this.name = name;
     Type type = typeof(ErrorPrototype);
     this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
 }
 internal NumberConstructor(LenientFunctionPrototype parent, LenientNumberPrototype prototypeProp)
   : base(parent, "Number", 1) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
示例#4
0
 internal LenientDateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp)
   : base(parent, prototypeProp) {
   this.noExpando = false;
   Type super = typeof(DateConstructor);
   this.parse = new BuiltinFunction("parse", this, super.GetMethod("parse"), parent);
   this.UTC = new BuiltinFunction("UTC", this, super.GetMethod("UTC"), parent);
 }
示例#5
0
 internal VBArrayConstructor(LenientFunctionPrototype parent, LenientVBArrayPrototype prototypeProp) : base(parent, "VBArray", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
 internal EnumeratorConstructor(LenientFunctionPrototype parent, LenientEnumeratorPrototype prototypeProp) : base(parent, "Enumerator", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
 internal VBArrayConstructor(LenientFunctionPrototype parent, LenientVBArrayPrototype prototypeProp) : base(parent, "VBArray", 1)
 {
     this.originalPrototype = prototypeProp;
     prototypeProp.constructor = this;
     base.proto = prototypeProp;
     base.noExpando = false;
 }
 internal BooleanConstructor(LenientFunctionPrototype parent, LenientBooleanPrototype prototypeProp) : base(parent, "Boolean", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
        internal LenientStringConstructor(LenientFunctionPrototype parent, LenientStringPrototype prototypeProp) : base(parent, prototypeProp)
        {
            base.noExpando = false;
            Type type = typeof(StringConstructor);

            this.fromCharCode = new BuiltinFunction("fromCharCode", this, type.GetMethod("fromCharCode"), parent);
        }
 internal LenientBooleanPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent, typeof(LenientBooleanPrototype))
 {
     base.noExpando = false;
     Type type = typeof(BooleanPrototype);
     this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
     this.valueOf = new BuiltinFunction("valueOf", this, type.GetMethod("valueOf"), funcprot);
 }
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp) : base(parent, "Date", 7)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
 internal ObjectConstructor(LenientFunctionPrototype parent, LenientObjectPrototype prototypeProp) : base(parent, "Object", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
 internal FunctionConstructor(LenientFunctionPrototype prototypeProp) : base(prototypeProp, "Function", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
 internal EnumeratorConstructor(LenientFunctionPrototype parent, LenientEnumeratorPrototype prototypeProp) : base(parent, "Enumerator", 1)
 {
     this.originalPrototype = prototypeProp;
     prototypeProp.constructor = this;
     base.proto = prototypeProp;
     base.noExpando = false;
 }
 internal FunctionConstructor(LenientFunctionPrototype prototypeProp) : base(prototypeProp, "Function", 1)
 {
     this.originalPrototype = prototypeProp;
     prototypeProp.constructor = this;
     base.proto = prototypeProp;
     base.noExpando = false;
 }
示例#16
0
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp)
   : base(parent, "Date", 7) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
 internal BooleanConstructor(LenientFunctionPrototype parent, LenientBooleanPrototype prototypeProp)
   : base(parent, "Boolean", 1) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
        internal LenientGlobalObject(VsaEngine engine)
        {
            this.engine              = engine;
            this.Infinity            = (double)1.0 / (double)0.0;
            this.NaN                 = (double)1.0 / (double)0.0;
            this.undefined           = null;
            this.ActiveXObjectField  = Missing.Value;
            this.ArrayField          = Missing.Value;
            this.BooleanField        = Missing.Value;
            this.DateField           = Missing.Value;
            this.EnumeratorField     = Missing.Value;
            this.ErrorField          = Missing.Value;
            this.EvalErrorField      = Missing.Value;
            this.FunctionField       = Missing.Value;
            this.MathField           = Missing.Value;
            this.NumberField         = Missing.Value;
            this.ObjectField         = Missing.Value;
            this.RangeErrorField     = Missing.Value;
            this.ReferenceErrorField = Missing.Value;
            this.RegExpField         = Missing.Value;
            this.StringField         = Missing.Value;
            this.SyntaxErrorField    = Missing.Value;
            this.TypeErrorField      = Missing.Value;
            this.VBArrayField        = Missing.Value;
            this.URIErrorField       = Missing.Value;
            Type type = typeof(GlobalObject);
            LenientFunctionPrototype functionPrototype = this.functionPrototype;

            this.decodeURI          = new BuiltinFunction("decodeURI", this, type.GetMethod("decodeURI"), functionPrototype);
            this.decodeURIComponent = new BuiltinFunction("decodeURIComponent", this, type.GetMethod("decodeURIComponent"), functionPrototype);
            this.encodeURI          = new BuiltinFunction("encodeURI", this, type.GetMethod("encodeURI"), functionPrototype);
            this.encodeURIComponent = new BuiltinFunction("encodeURIComponent", this, type.GetMethod("encodeURIComponent"), functionPrototype);
            this.escape             = new BuiltinFunction("escape", this, type.GetMethod("escape"), functionPrototype);
            this.eval                     = new BuiltinFunction("eval", this, type.GetMethod("eval"), functionPrototype);
            this.isNaN                    = new BuiltinFunction("isNaN", this, type.GetMethod("isNaN"), functionPrototype);
            this.isFinite                 = new BuiltinFunction("isFinite", this, type.GetMethod("isFinite"), functionPrototype);
            this.parseInt                 = new BuiltinFunction("parseInt", this, type.GetMethod("parseInt"), functionPrototype);
            this.GetObject                = new BuiltinFunction("GetObject", this, type.GetMethod("GetObject"), functionPrototype);
            this.parseFloat               = new BuiltinFunction("parseFloat", this, type.GetMethod("parseFloat"), functionPrototype);
            this.ScriptEngine             = new BuiltinFunction("ScriptEngine", this, type.GetMethod("ScriptEngine"), functionPrototype);
            this.ScriptEngineBuildVersion = new BuiltinFunction("ScriptEngineBuildVersion", this, type.GetMethod("ScriptEngineBuildVersion"), functionPrototype);
            this.ScriptEngineMajorVersion = new BuiltinFunction("ScriptEngineMajorVersion", this, type.GetMethod("ScriptEngineMajorVersion"), functionPrototype);
            this.ScriptEngineMinorVersion = new BuiltinFunction("ScriptEngineMinorVersion", this, type.GetMethod("ScriptEngineMinorVersion"), functionPrototype);
            this.unescape                 = new BuiltinFunction("unescape", this, type.GetMethod("unescape"), functionPrototype);
            this.boolean                  = Typeob.Boolean;
            this.@byte                    = Typeob.Byte;
            this.@char                    = Typeob.Char;
            this.@decimal                 = Typeob.Decimal;
            this.@double                  = Typeob.Double;
            this.@float                   = Typeob.Single;
            this.@int                     = Typeob.Int32;
            this.@long                    = Typeob.Int64;
            this.@sbyte                   = Typeob.SByte;
            this.@short                   = Typeob.Int16;
            this.@void                    = Typeob.Void;
            this.@uint                    = Typeob.UInt32;
            this.@ulong                   = Typeob.UInt64;
            this.@ushort                  = Typeob.UInt16;
        }
示例#19
0
        internal LenientErrorPrototype(LenientFunctionPrototype funcprot, ScriptObject parent, string name) : base(parent, name)
        {
            base.noExpando = false;
            this.name      = name;
            Type type = typeof(ErrorPrototype);

            this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
        }
 internal NumberConstructor(LenientFunctionPrototype parent, LenientNumberPrototype prototypeProp)
     : base(parent, "Number", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     this.proto     = prototypeProp;
     this.noExpando = false;
 }
 internal LenientErrorPrototype(LenientFunctionPrototype funcprot, ScriptObject parent, String name)
   : base(parent, name) {
   this.noExpando = false;
   //this.constructor is given a value by the constructor class
   this.name = name;
   Type super = typeof(ErrorPrototype);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
 }
        internal LenientBooleanPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent, typeof(LenientBooleanPrototype))
        {
            base.noExpando = false;
            Type type = typeof(BooleanPrototype);

            this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
            this.valueOf  = new BuiltinFunction("valueOf", this, type.GetMethod("valueOf"), funcprot);
        }
 internal LenientBooleanPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(parent, typeof(LenientBooleanPrototype)) {
   this.noExpando = false;
   //this.constructor is given a value by the proper constructor class
   Type super = typeof(BooleanPrototype);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
   this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
 }
        internal LenientDateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp) : base(parent, prototypeProp)
        {
            base.noExpando = false;
            Type type = typeof(DateConstructor);

            this.parse = new BuiltinFunction("parse", this, type.GetMethod("parse"), parent);
            this.UTC   = new BuiltinFunction("UTC", this, type.GetMethod("UTC"), parent);
        }
 internal LenientRegExpPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
 {
     base.noExpando = false;
     Type type = typeof(RegExpPrototype);
     this.compile = new BuiltinFunction("compile", this, type.GetMethod("compile"), funcprot);
     this.exec = new BuiltinFunction("exec", this, type.GetMethod("exec"), funcprot);
     this.test = new BuiltinFunction("test", this, type.GetMethod("test"), funcprot);
     this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
 }
 internal LenientEnumeratorPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
 {
     base.noExpando = false;
     Type type = typeof(EnumeratorPrototype);
     this.atEnd = new BuiltinFunction("atEnd", this, type.GetMethod("atEnd"), funcprot);
     this.item = new BuiltinFunction("item", this, type.GetMethod("item"), funcprot);
     this.moveFirst = new BuiltinFunction("moveFirst", this, type.GetMethod("moveFirst"), funcprot);
     this.moveNext = new BuiltinFunction("moveNext", this, type.GetMethod("moveNext"), funcprot);
 }
 internal ErrorConstructor(LenientFunctionPrototype parent, LenientErrorPrototype prototypeProp, GlobalObject globalObject)
   : base(parent, "Error", 2) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.type = ErrorType.OtherError;
   this.globalObject = globalObject;
   this.noExpando = false;
 }
示例#28
0
 internal ErrorConstructor(LenientFunctionPrototype parent, LenientErrorPrototype prototypeProp, GlobalObject globalObject) : base(parent, "Error", 2)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto        = prototypeProp;
     this.type         = ErrorType.OtherError;
     this.globalObject = globalObject;
     base.noExpando    = false;
 }
示例#29
0
 internal void Initialize(LenientFunctionPrototype funcprot){
   Type super = typeof(ObjectPrototype);
   this.hasOwnProperty = new BuiltinFunction("hasOwnProperty", this, super.GetMethod("hasOwnProperty"), funcprot);
   this.isPrototypeOf = new BuiltinFunction("isPrototypeOf", this, super.GetMethod("isPrototypeOf"), funcprot);
   this.propertyIsEnumerable = new BuiltinFunction("propertyIsEnumerable", this, super.GetMethod("propertyIsEnumerable"), funcprot);
   this.toLocaleString = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
   this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
 }  
 internal LenientRegExpPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(parent) {
   this.noExpando = false;
   //this.constructor is given a value by the proper constructor class
   Type super = typeof(RegExpPrototype);
   this.compile = new BuiltinFunction("compile", this, super.GetMethod("compile"), funcprot);
   this.exec = new BuiltinFunction("exec", this, super.GetMethod("exec"), funcprot);
   this.test = new BuiltinFunction("test", this, super.GetMethod("test"), funcprot);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
 }
 internal LenientVBArrayPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(funcprot, parent)
 {
     base.noExpando = false;
     Type type = typeof(VBArrayPrototype);
     this.dimensions = new BuiltinFunction("dimensions", this, type.GetMethod("dimensions"), funcprot);
     this.getItem = new BuiltinFunction("getItem", this, type.GetMethod("getItem"), funcprot);
     this.lbound = new BuiltinFunction("lbound", this, type.GetMethod("lbound"), funcprot);
     this.toArray = new BuiltinFunction("toArray", this, type.GetMethod("toArray"), funcprot);
     this.ubound = new BuiltinFunction("ubound", this, type.GetMethod("ubound"), funcprot);
 }
示例#32
0
        internal LenientRegExpPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
        {
            base.noExpando = false;
            Type type = typeof(RegExpPrototype);

            this.compile  = new BuiltinFunction("compile", this, type.GetMethod("compile"), funcprot);
            this.exec     = new BuiltinFunction("exec", this, type.GetMethod("exec"), funcprot);
            this.test     = new BuiltinFunction("test", this, type.GetMethod("test"), funcprot);
            this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
        }
        internal LenientEnumeratorPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
        {
            base.noExpando = false;
            Type type = typeof(EnumeratorPrototype);

            this.atEnd     = new BuiltinFunction("atEnd", this, type.GetMethod("atEnd"), funcprot);
            this.item      = new BuiltinFunction("item", this, type.GetMethod("item"), funcprot);
            this.moveFirst = new BuiltinFunction("moveFirst", this, type.GetMethod("moveFirst"), funcprot);
            this.moveNext  = new BuiltinFunction("moveNext", this, type.GetMethod("moveNext"), funcprot);
        }
示例#34
0
        internal LenientErrorPrototype(LenientFunctionPrototype funcprot, ScriptObject parent, String name)
            : base(parent, name)
        {
            this.noExpando = false;
            //this.constructor is given a value by the constructor class
            this.name = name;
            Type super = typeof(ErrorPrototype);

            this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
        }
 internal LenientEnumeratorPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(parent) {
   this.noExpando = false;
   //this.constructor is given a value by the constructor class
   Type super = typeof(EnumeratorPrototype);
   this.atEnd = new BuiltinFunction("atEnd", this, super.GetMethod("atEnd"), funcprot);
   this.item = new BuiltinFunction("item", this, super.GetMethod("item"), funcprot);
   this.moveFirst = new BuiltinFunction("moveFirst", this, super.GetMethod("moveFirst"), funcprot);
   this.moveNext = new BuiltinFunction("moveNext", this, super.GetMethod("moveNext"), funcprot);
 }
示例#36
0
        internal LenientBooleanPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(parent, typeof(LenientBooleanPrototype))
        {
            this.noExpando = false;
            //this.constructor is given a value by the proper constructor class
            Type super = typeof(BooleanPrototype);

            this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
            this.valueOf  = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
        }
        internal LenientVBArrayPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(funcprot, parent)
        {
            base.noExpando = false;
            Type type = typeof(VBArrayPrototype);

            this.dimensions = new BuiltinFunction("dimensions", this, type.GetMethod("dimensions"), funcprot);
            this.getItem    = new BuiltinFunction("getItem", this, type.GetMethod("getItem"), funcprot);
            this.lbound     = new BuiltinFunction("lbound", this, type.GetMethod("lbound"), funcprot);
            this.toArray    = new BuiltinFunction("toArray", this, type.GetMethod("toArray"), funcprot);
            this.ubound     = new BuiltinFunction("ubound", this, type.GetMethod("ubound"), funcprot);
        }
示例#38
0
        internal LenientDatePrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(parent)
        {
            this.noExpando = false;

            //this.constructor is given a value by the proper constructor class
            Type super = typeof(DatePrototype);

            this.getTime            = new BuiltinFunction("getTime", this, super.GetMethod("getTime"), funcprot);
            this.getYear            = new BuiltinFunction("getYear", this, super.GetMethod("getYear"), funcprot);
            this.getFullYear        = new BuiltinFunction("getFullYear", this, super.GetMethod("getFullYear"), funcprot);
            this.getUTCFullYear     = new BuiltinFunction("getUTCFullYear", this, super.GetMethod("getUTCFullYear"), funcprot);
            this.getMonth           = new BuiltinFunction("getMonth", this, super.GetMethod("getMonth"), funcprot);
            this.getUTCMonth        = new BuiltinFunction("getUTCMonth", this, super.GetMethod("getUTCMonth"), funcprot);
            this.getDate            = new BuiltinFunction("getDate", this, super.GetMethod("getDate"), funcprot);
            this.getUTCDate         = new BuiltinFunction("getUTCDate", this, super.GetMethod("getUTCDate"), funcprot);
            this.getDay             = new BuiltinFunction("getDay", this, super.GetMethod("getDay"), funcprot);
            this.getUTCDay          = new BuiltinFunction("getUTCDay", this, super.GetMethod("getUTCDay"), funcprot);
            this.getHours           = new BuiltinFunction("getHours", this, super.GetMethod("getHours"), funcprot);
            this.getUTCHours        = new BuiltinFunction("getUTCHours", this, super.GetMethod("getUTCHours"), funcprot);
            this.getMinutes         = new BuiltinFunction("getMinutes", this, super.GetMethod("getMinutes"), funcprot);
            this.getUTCMinutes      = new BuiltinFunction("getUTCMinutes", this, super.GetMethod("getUTCMinutes"), funcprot);
            this.getSeconds         = new BuiltinFunction("getSeconds", this, super.GetMethod("getSeconds"), funcprot);
            this.getUTCSeconds      = new BuiltinFunction("getUTCSeconds", this, super.GetMethod("getUTCSeconds"), funcprot);
            this.getMilliseconds    = new BuiltinFunction("getMilliseconds", this, super.GetMethod("getMilliseconds"), funcprot);
            this.getUTCMilliseconds = new BuiltinFunction("getUTCMilliseconds", this, super.GetMethod("getUTCMilliseconds"), funcprot);
            this.getVarDate         = new BuiltinFunction("getVarDate", this, super.GetMethod("getVarDate"), funcprot);
            this.getTimezoneOffset  = new BuiltinFunction("getTimezoneOffset", this, super.GetMethod("getTimezoneOffset"), funcprot);
            this.setTime            = new BuiltinFunction("setTime", this, super.GetMethod("setTime"), funcprot);
            this.setMilliseconds    = new BuiltinFunction("setMilliseconds", this, super.GetMethod("setMilliseconds"), funcprot);
            this.setUTCMilliseconds = new BuiltinFunction("setUTCMilliseconds", this, super.GetMethod("setUTCMilliseconds"), funcprot);
            this.setSeconds         = new BuiltinFunction("setSeconds", this, super.GetMethod("setSeconds"), funcprot);
            this.setUTCSeconds      = new BuiltinFunction("setUTCSeconds", this, super.GetMethod("setUTCSeconds"), funcprot);
            this.setMinutes         = new BuiltinFunction("setMinutes", this, super.GetMethod("setMinutes"), funcprot);
            this.setUTCMinutes      = new BuiltinFunction("setUTCMinutes", this, super.GetMethod("setUTCMinutes"), funcprot);
            this.setHours           = new BuiltinFunction("setHours", this, super.GetMethod("setHours"), funcprot);
            this.setUTCHours        = new BuiltinFunction("setUTCHours", this, super.GetMethod("setUTCHours"), funcprot);
            this.setDate            = new BuiltinFunction("setDate", this, super.GetMethod("setDate"), funcprot);
            this.setUTCDate         = new BuiltinFunction("setUTCDate", this, super.GetMethod("setUTCDate"), funcprot);
            this.setMonth           = new BuiltinFunction("setMonth", this, super.GetMethod("setMonth"), funcprot);
            this.setUTCMonth        = new BuiltinFunction("setUTCMonth", this, super.GetMethod("setUTCMonth"), funcprot);
            this.setFullYear        = new BuiltinFunction("setFullYear", this, super.GetMethod("setFullYear"), funcprot);
            this.setUTCFullYear     = new BuiltinFunction("setUTCFullYear", this, super.GetMethod("setUTCFullYear"), funcprot);
            this.setYear            = new BuiltinFunction("setYear", this, super.GetMethod("setYear"), funcprot);
            this.toDateString       = new BuiltinFunction("toDateString", this, super.GetMethod("toDateString"), funcprot);
            this.toLocaleDateString = new BuiltinFunction("toLocaleDateString", this, super.GetMethod("toLocaleDateString"), funcprot);
            this.toLocaleString     = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
            this.toLocaleTimeString = new BuiltinFunction("toLocaleTimeString", this, super.GetMethod("toLocaleTimeString"), funcprot);
            this.toGMTString        = new BuiltinFunction("toUTCString", this, super.GetMethod("toUTCString"), funcprot);
            this.toString           = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
            this.toTimeString       = new BuiltinFunction("toTimeString", this, super.GetMethod("toTimeString"), funcprot);
            this.toUTCString        = new BuiltinFunction("toUTCString", this, super.GetMethod("toUTCString"), funcprot);
            this.valueOf            = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
        }
 internal LenientNumberPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
 {
     base.noExpando = false;
     Type type = typeof(NumberPrototype);
     this.toExponential = new BuiltinFunction("toExponential", this, type.GetMethod("toExponential"), funcprot);
     this.toFixed = new BuiltinFunction("toFixed", this, type.GetMethod("toFixed"), funcprot);
     this.toLocaleString = new BuiltinFunction("toLocaleString", this, type.GetMethod("toLocaleString"), funcprot);
     this.toPrecision = new BuiltinFunction("toPrecision", this, type.GetMethod("toPrecision"), funcprot);
     this.toString = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
     this.valueOf = new BuiltinFunction("valueOf", this, type.GetMethod("valueOf"), funcprot);
 }
示例#40
0
        internal void Initialize(LenientFunctionPrototype funcprot)
        {
            Type type = typeof(ObjectPrototype);

            this.hasOwnProperty       = new BuiltinFunction("hasOwnProperty", this, type.GetMethod("hasOwnProperty"), funcprot);
            this.isPrototypeOf        = new BuiltinFunction("isPrototypeOf", this, type.GetMethod("isPrototypeOf"), funcprot);
            this.propertyIsEnumerable = new BuiltinFunction("propertyIsEnumerable", this, type.GetMethod("propertyIsEnumerable"), funcprot);
            this.toLocaleString       = new BuiltinFunction("toLocaleString", this, type.GetMethod("toLocaleString"), funcprot);
            this.toString             = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
            this.valueOf = new BuiltinFunction("valueOf", this, type.GetMethod("valueOf"), funcprot);
        }
示例#41
0
 internal LenientVBArrayPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(funcprot, parent) {
   this.noExpando = false;
   //this.constructor is given a value by the constructor class
   Type super = typeof(VBArrayPrototype);
   this.dimensions = new BuiltinFunction("dimensions", this, super.GetMethod("dimensions"), funcprot);
   this.getItem = new BuiltinFunction("getItem", this, super.GetMethod("getItem"), funcprot);
   this.lbound = new BuiltinFunction("lbound", this, super.GetMethod("lbound"), funcprot);
   this.toArray = new BuiltinFunction("toArray", this, super.GetMethod("toArray"), funcprot);
   this.ubound = new BuiltinFunction("ubound", this, super.GetMethod("ubound"), funcprot);
 }
        internal LenientNumberPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
        {
            base.noExpando = false;
            Type type = typeof(NumberPrototype);

            this.toExponential  = new BuiltinFunction("toExponential", this, type.GetMethod("toExponential"), funcprot);
            this.toFixed        = new BuiltinFunction("toFixed", this, type.GetMethod("toFixed"), funcprot);
            this.toLocaleString = new BuiltinFunction("toLocaleString", this, type.GetMethod("toLocaleString"), funcprot);
            this.toPrecision    = new BuiltinFunction("toPrecision", this, type.GetMethod("toPrecision"), funcprot);
            this.toString       = new BuiltinFunction("toString", this, type.GetMethod("toString"), funcprot);
            this.valueOf        = new BuiltinFunction("valueOf", this, type.GetMethod("valueOf"), funcprot);
        }
示例#43
0
 internal LenientNumberPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(parent) {
   this.noExpando = false;
   //this.constructor is given a value by the proper constructor class
   Type super = typeof(NumberPrototype);
   this.toExponential = new BuiltinFunction("toExponential", this, super.GetMethod("toExponential"), funcprot);
   this.toFixed = new BuiltinFunction("toFixed", this, super.GetMethod("toFixed"), funcprot);
   this.toLocaleString = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
   this.toPrecision = new BuiltinFunction("toPrecision", this, super.GetMethod("toPrecision"), funcprot);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
   this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
 }
示例#44
0
        internal LenientRegExpPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(parent)
        {
            this.noExpando = false;
            //this.constructor is given a value by the proper constructor class
            Type super = typeof(RegExpPrototype);

            this.compile  = new BuiltinFunction("compile", this, super.GetMethod("compile"), funcprot);
            this.exec     = new BuiltinFunction("exec", this, super.GetMethod("exec"), funcprot);
            this.test     = new BuiltinFunction("test", this, super.GetMethod("test"), funcprot);
            this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
        }
 internal RegExpConstructor(LenientFunctionPrototype parent, LenientRegExpPrototype prototypeProp, LenientArrayPrototype arrayPrototype) : base(parent, "RegExp", 2)
 {
     this.originalPrototype = prototypeProp;
     prototypeProp.constructor = this;
     base.proto = prototypeProp;
     this.arrayPrototype = arrayPrototype;
     this.regex = null;
     this.lastRegexMatch = null;
     this.inputString = "";
     this.lastInput = null;
     base.noExpando = false;
 }
        internal LenientEnumeratorPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(parent)
        {
            this.noExpando = false;
            //this.constructor is given a value by the constructor class
            Type super = typeof(EnumeratorPrototype);

            this.atEnd     = new BuiltinFunction("atEnd", this, super.GetMethod("atEnd"), funcprot);
            this.item      = new BuiltinFunction("item", this, super.GetMethod("item"), funcprot);
            this.moveFirst = new BuiltinFunction("moveFirst", this, super.GetMethod("moveFirst"), funcprot);
            this.moveNext  = new BuiltinFunction("moveNext", this, super.GetMethod("moveNext"), funcprot);
        }
 internal RegExpConstructor(LenientFunctionPrototype parent, LenientRegExpPrototype prototypeProp, LenientArrayPrototype arrayPrototype) : base(parent, "RegExp", 2)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto          = prototypeProp;
     this.arrayPrototype = arrayPrototype;
     this.regex          = null;
     this.lastRegexMatch = null;
     this.inputString    = "";
     this.lastInput      = null;
     base.noExpando      = false;
 }
示例#48
0
   internal LenientDatePrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
     : base(parent) {
     this.noExpando = false;
 
     //this.constructor is given a value by the proper constructor class
     Type super = typeof(DatePrototype);
     this.getTime = new BuiltinFunction("getTime", this, super.GetMethod("getTime"), funcprot);
     this.getYear = new BuiltinFunction("getYear", this, super.GetMethod("getYear"), funcprot);
     this.getFullYear = new BuiltinFunction("getFullYear", this, super.GetMethod("getFullYear"), funcprot);
     this.getUTCFullYear = new BuiltinFunction("getUTCFullYear", this, super.GetMethod("getUTCFullYear"), funcprot);
     this.getMonth = new BuiltinFunction("getMonth", this, super.GetMethod("getMonth"), funcprot);
     this.getUTCMonth = new BuiltinFunction("getUTCMonth", this, super.GetMethod("getUTCMonth"), funcprot);
     this.getDate = new BuiltinFunction("getDate", this, super.GetMethod("getDate"), funcprot);
     this.getUTCDate = new BuiltinFunction("getUTCDate", this, super.GetMethod("getUTCDate"), funcprot);
     this.getDay = new BuiltinFunction("getDay", this, super.GetMethod("getDay"), funcprot);
     this.getUTCDay = new BuiltinFunction("getUTCDay", this, super.GetMethod("getUTCDay"), funcprot);
     this.getHours = new BuiltinFunction("getHours", this, super.GetMethod("getHours"), funcprot);
     this.getUTCHours = new BuiltinFunction("getUTCHours", this, super.GetMethod("getUTCHours"), funcprot);
     this.getMinutes = new BuiltinFunction("getMinutes", this, super.GetMethod("getMinutes"), funcprot);
     this.getUTCMinutes = new BuiltinFunction("getUTCMinutes", this, super.GetMethod("getUTCMinutes"), funcprot);
     this.getSeconds = new BuiltinFunction("getSeconds", this, super.GetMethod("getSeconds"), funcprot);
     this.getUTCSeconds = new BuiltinFunction("getUTCSeconds", this, super.GetMethod("getUTCSeconds"), funcprot);
     this.getMilliseconds = new BuiltinFunction("getMilliseconds", this, super.GetMethod("getMilliseconds"), funcprot);
     this.getUTCMilliseconds = new BuiltinFunction("getUTCMilliseconds", this, super.GetMethod("getUTCMilliseconds"), funcprot);
     this.getVarDate = new BuiltinFunction("getVarDate", this, super.GetMethod("getVarDate"), funcprot);
     this.getTimezoneOffset = new BuiltinFunction("getTimezoneOffset", this, super.GetMethod("getTimezoneOffset"), funcprot);
     this.setTime = new BuiltinFunction("setTime", this, super.GetMethod("setTime"), funcprot);
     this.setMilliseconds = new BuiltinFunction("setMilliseconds", this, super.GetMethod("setMilliseconds"), funcprot);
     this.setUTCMilliseconds = new BuiltinFunction("setUTCMilliseconds", this, super.GetMethod("setUTCMilliseconds"), funcprot);
     this.setSeconds = new BuiltinFunction("setSeconds", this, super.GetMethod("setSeconds"), funcprot);
     this.setUTCSeconds = new BuiltinFunction("setUTCSeconds", this, super.GetMethod("setUTCSeconds"), funcprot);
     this.setMinutes = new BuiltinFunction("setMinutes", this, super.GetMethod("setMinutes"), funcprot);
     this.setUTCMinutes = new BuiltinFunction("setUTCMinutes", this, super.GetMethod("setUTCMinutes"), funcprot);
     this.setHours = new BuiltinFunction("setHours", this, super.GetMethod("setHours"), funcprot);
     this.setUTCHours = new BuiltinFunction("setUTCHours", this, super.GetMethod("setUTCHours"), funcprot);
     this.setDate = new BuiltinFunction("setDate", this, super.GetMethod("setDate"), funcprot);
     this.setUTCDate = new BuiltinFunction("setUTCDate", this, super.GetMethod("setUTCDate"), funcprot);
     this.setMonth = new BuiltinFunction("setMonth", this, super.GetMethod("setMonth"), funcprot);
     this.setUTCMonth = new BuiltinFunction("setUTCMonth", this, super.GetMethod("setUTCMonth"), funcprot);
     this.setFullYear = new BuiltinFunction("setFullYear", this, super.GetMethod("setFullYear"), funcprot);
     this.setUTCFullYear = new BuiltinFunction("setUTCFullYear", this, super.GetMethod("setUTCFullYear"), funcprot);
     this.setYear = new BuiltinFunction("setYear", this, super.GetMethod("setYear"), funcprot);
     this.toDateString = new BuiltinFunction("toDateString", this, super.GetMethod("toDateString"), funcprot);
     this.toLocaleDateString = new BuiltinFunction("toLocaleDateString", this, super.GetMethod("toLocaleDateString"), funcprot);
     this.toLocaleString = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
     this.toLocaleTimeString = new BuiltinFunction("toLocaleTimeString", this, super.GetMethod("toLocaleTimeString"), funcprot);
     this.toGMTString = new BuiltinFunction("toUTCString", this, super.GetMethod("toUTCString"), funcprot);
     this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
     this.toTimeString = new BuiltinFunction("toTimeString", this, super.GetMethod("toTimeString"), funcprot);
     this.toUTCString = new BuiltinFunction("toUTCString", this, super.GetMethod("toUTCString"), funcprot);
     this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
   }
        internal LenientVBArrayPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(funcprot, parent)
        {
            this.noExpando = false;
            //this.constructor is given a value by the constructor class
            Type super = typeof(VBArrayPrototype);

            this.dimensions = new BuiltinFunction("dimensions", this, super.GetMethod("dimensions"), funcprot);
            this.getItem    = new BuiltinFunction("getItem", this, super.GetMethod("getItem"), funcprot);
            this.lbound     = new BuiltinFunction("lbound", this, super.GetMethod("lbound"), funcprot);
            this.toArray    = new BuiltinFunction("toArray", this, super.GetMethod("toArray"), funcprot);
            this.ubound     = new BuiltinFunction("ubound", this, super.GetMethod("ubound"), funcprot);
        }
        internal LenientNumberPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(parent)
        {
            this.noExpando = false;
            //this.constructor is given a value by the proper constructor class
            Type super = typeof(NumberPrototype);

            this.toExponential  = new BuiltinFunction("toExponential", this, super.GetMethod("toExponential"), funcprot);
            this.toFixed        = new BuiltinFunction("toFixed", this, super.GetMethod("toFixed"), funcprot);
            this.toLocaleString = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
            this.toPrecision    = new BuiltinFunction("toPrecision", this, super.GetMethod("toPrecision"), funcprot);
            this.toString       = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
            this.valueOf        = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
        }
示例#51
0
        internal LenientStringPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
            : base(funcprot, parent)
        {
            this.noExpando = false;

            //this.constructor is given a value by the proper constructor class
            Type super = typeof(StringPrototype);

            this.anchor            = new BuiltinFunction("anchor", this, super.GetMethod("anchor"), funcprot);
            this.big               = new BuiltinFunction("big", this, super.GetMethod("big"), funcprot);
            this.blink             = new BuiltinFunction("blink", this, super.GetMethod("blink"), funcprot);
            this.bold              = new BuiltinFunction("bold", this, super.GetMethod("bold"), funcprot);
            this.charAt            = new BuiltinFunction("charAt", this, super.GetMethod("charAt"), funcprot);
            this.charCodeAt        = new BuiltinFunction("charCodeAt", this, super.GetMethod("charCodeAt"), funcprot);
            this.concat            = new BuiltinFunction("concat", this, super.GetMethod("concat"), funcprot);
            this.@fixed            = new BuiltinFunction("fixed", this, super.GetMethod("fixed"), funcprot);
            this.fontcolor         = new BuiltinFunction("fontcolor", this, super.GetMethod("fontcolor"), funcprot);
            this.fontsize          = new BuiltinFunction("fontsize", this, super.GetMethod("fontsize"), funcprot);
            this.indexOf           = new BuiltinFunction("indexOf", this, super.GetMethod("indexOf"), funcprot);
            this.italics           = new BuiltinFunction("italics", this, super.GetMethod("italics"), funcprot);
            this.lastIndexOf       = new BuiltinFunction("lastIndexOf", this, super.GetMethod("lastIndexOf"), funcprot);
            this.link              = new BuiltinFunction("link", this, super.GetMethod("link"), funcprot);
            this.localeCompare     = new BuiltinFunction("localeCompare", this, super.GetMethod("localeCompare"), funcprot);
            this.match             = new BuiltinFunction("match", this, super.GetMethod("match"), funcprot);
            this.replace           = new BuiltinFunction("replace", this, super.GetMethod("replace"), funcprot);
            this.search            = new BuiltinFunction("search", this, super.GetMethod("search"), funcprot);
            this.slice             = new BuiltinFunction("slice", this, super.GetMethod("slice"), funcprot);
            this.small             = new BuiltinFunction("small", this, super.GetMethod("small"), funcprot);
            this.split             = new BuiltinFunction("split", this, super.GetMethod("split"), funcprot);
            this.strike            = new BuiltinFunction("strike", this, super.GetMethod("strike"), funcprot);
            this.sub               = new BuiltinFunction("sub", this, super.GetMethod("sub"), funcprot);
            this.substr            = new BuiltinFunction("substr", this, super.GetMethod("substr"), funcprot);
            this.substring         = new BuiltinFunction("substring", this, super.GetMethod("substring"), funcprot);
            this.sup               = new BuiltinFunction("sup", this, super.GetMethod("sup"), funcprot);
            this.toLocaleLowerCase = new BuiltinFunction("toLocaleLowerCase", this, super.GetMethod("toLocaleLowerCase"), funcprot);
            this.toLocaleUpperCase = new BuiltinFunction("toLocaleUpperCase", this, super.GetMethod("toLocaleUpperCase"), funcprot);
            this.toLowerCase       = new BuiltinFunction("toLowerCase", this, super.GetMethod("toLowerCase"), funcprot);
            this.toString          = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
            this.toUpperCase       = new BuiltinFunction("toUpperCase", this, super.GetMethod("toUpperCase"), funcprot);
            this.valueOf           = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
        }
 internal LenientStringPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
   : base(funcprot, parent) {
   this.noExpando = false;
   
   //this.constructor is given a value by the proper constructor class
   Type super = typeof(StringPrototype);
   this.anchor = new BuiltinFunction("anchor", this, super.GetMethod("anchor"), funcprot);
   this.big = new BuiltinFunction("big", this, super.GetMethod("big"), funcprot);
   this.blink = new BuiltinFunction("blink", this, super.GetMethod("blink"), funcprot);
   this.bold = new BuiltinFunction("bold", this, super.GetMethod("bold"), funcprot);
   this.charAt = new BuiltinFunction("charAt", this, super.GetMethod("charAt"), funcprot);
   this.charCodeAt = new BuiltinFunction("charCodeAt", this, super.GetMethod("charCodeAt"), funcprot);
   this.concat = new BuiltinFunction("concat", this, super.GetMethod("concat"), funcprot);
   this.@fixed = new BuiltinFunction("fixed", this, super.GetMethod("fixed"), funcprot);
   this.fontcolor = new BuiltinFunction("fontcolor", this, super.GetMethod("fontcolor"), funcprot);
   this.fontsize = new BuiltinFunction("fontsize", this, super.GetMethod("fontsize"), funcprot);
   this.indexOf = new BuiltinFunction("indexOf", this, super.GetMethod("indexOf"), funcprot);
   this.italics = new BuiltinFunction("italics", this, super.GetMethod("italics"), funcprot);
   this.lastIndexOf = new BuiltinFunction("lastIndexOf", this, super.GetMethod("lastIndexOf"), funcprot);
   this.link = new BuiltinFunction("link", this, super.GetMethod("link"), funcprot);
   this.localeCompare = new BuiltinFunction("localeCompare", this, super.GetMethod("localeCompare"), funcprot);
   this.match = new BuiltinFunction("match", this, super.GetMethod("match"), funcprot);
   this.replace = new BuiltinFunction("replace", this, super.GetMethod("replace"), funcprot);
   this.search = new BuiltinFunction("search", this, super.GetMethod("search"), funcprot);
   this.slice = new BuiltinFunction("slice", this, super.GetMethod("slice"), funcprot);
   this.small = new BuiltinFunction("small", this, super.GetMethod("small"), funcprot);
   this.split = new BuiltinFunction("split", this, super.GetMethod("split"), funcprot);
   this.strike = new BuiltinFunction("strike", this, super.GetMethod("strike"), funcprot);
   this.sub = new BuiltinFunction("sub", this, super.GetMethod("sub"), funcprot);
   this.substr = new BuiltinFunction("substr", this, super.GetMethod("substr"), funcprot);
   this.substring = new BuiltinFunction("substring", this, super.GetMethod("substring"), funcprot);
   this.sup = new BuiltinFunction("sup", this, super.GetMethod("sup"), funcprot);
   this.toLocaleLowerCase = new BuiltinFunction("toLocaleLowerCase", this, super.GetMethod("toLocaleLowerCase"), funcprot);
   this.toLocaleUpperCase = new BuiltinFunction("toLocaleUpperCase", this, super.GetMethod("toLocaleUpperCase"), funcprot);
   this.toLowerCase = new BuiltinFunction("toLowerCase", this, super.GetMethod("toLowerCase"), funcprot);
   this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
   this.toUpperCase = new BuiltinFunction("toUpperCase", this, super.GetMethod("toUpperCase"), funcprot);
   this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);
 }
 internal ActiveXObjectConstructor(LenientFunctionPrototype parent)
     : base(parent, "ActiveXObject", 1)
 {
     this.noExpando = false;
 }
 internal LenientStringConstructor(LenientFunctionPrototype parent, LenientStringPrototype prototypeProp)
   : base(parent, prototypeProp) {
   this.noExpando = false;
   Type super = typeof(StringConstructor);
   this.fromCharCode = new BuiltinFunction("fromCharCode", this, super.GetMethod("fromCharCode"), parent);
 }
  internal ActiveXObjectConstructor(LenientFunctionPrototype parent)
    : base(parent, "ActiveXObject", 1) {
     this.noExpando = false;
 }