Package macromedia.asc.embedding.avmplus

Examples of macromedia.asc.embedding.avmplus.InstanceBuilder


        if( is_constructor && cx.useStaticSemantics() )
        {
            // check for default 0 arg ctor in baseclass if the user doesn't explicitly call super() from the ctor
            int scope_depth = cx.getScopeDepth();
            ObjectValue iframe = cx.scope(scope_depth-2);
            InstanceBuilder ib = iframe.builder instanceof InstanceBuilder ? (InstanceBuilder) iframe.builder : null;
            if( ib != null && !ib.calls_super_ctor )
            {
                // Doesn't call the base class constructor, check for a default no-args constructor

                if( ib.basebui != null )
View Full Code Here


   
    private void checkClassInterfaceMethods(Context cx,
                                            ClassDefinitionNode classNode,
                                            ObjectValue interfaceIFrame)
    {
        InstanceBuilder builder = (InstanceBuilder)interfaceIFrame.builder;
        Names names = builder.getNames();

        if (names != null)
        {
            for (int i = 0; (i = names.hasNext(i)) != -1; i++)
            {
View Full Code Here

    }
    private void checkInterfaceInterfaceMethods(Context cx,
            InterfaceDefinitionNode classNode,
            ObjectValue interfaceIFrame)
    {
        InstanceBuilder builder = (InstanceBuilder)interfaceIFrame.builder;
        Names names = builder.getNames();

        if (names != null)
        {
            for (int i = 0; (i = names.hasNext(i)) != -1; i++)
            {
View Full Code Here

            String name = "*";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._noType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_none);
            statics._noType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._noType);
            statics.builtins.put(name, statics._noType);
            statics._noType.prototype.builder.is_dynamic = true// do this here since there is no class definition
        }
        return statics._noType;
    }
View Full Code Here

            String name = "Object";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._objectType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_object);
            statics._objectType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._objectType);
            statics.builtins.put(name, statics._objectType);
        }
        return statics._objectType;
    }
View Full Code Here

            String name = "Array";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._arrayType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_array);
            statics._arrayType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._arrayType);
            statics.builtins.put(name, statics._arrayType);
        }
        return statics._arrayType;
    }
View Full Code Here

            String name = "void";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._voidType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_void);
            statics._voidType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._voidType);
            statics._voidType.prototype.setValue("undefined");
            statics.builtins.put(name, statics._voidType);
        }
        return statics._voidType;
    }
View Full Code Here

            String name = "Null";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._nullType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_null);
            statics._nullType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._nullType);
            statics._nullType.prototype.setValue("null");
            statics.builtins.put(name, statics._nullType);
        }
        return statics._nullType;
    }
View Full Code Here

            String name = "Boolean";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._booleanType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_boolean);
            statics._booleanType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._booleanType);
            statics.builtins.put(name, statics._booleanType);
        }
        return statics._booleanType;
    }
View Full Code Here

            String name = "String";
            QName qname = new QName(publicNamespace(), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._stringType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_string);
            statics._stringType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._stringType);
            statics.builtins.put(name, statics._stringType);
        }
        return statics._stringType;
    }
View Full Code Here

TOP

Related Classes of macromedia.asc.embedding.avmplus.InstanceBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.