Package macromedia.asc.embedding.avmplus

Examples of macromedia.asc.embedding.avmplus.InstanceBuilder


            String name = "decimal";
            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._decimalType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_decimal);
            statics._decimalType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._decimalType);
            statics.builtins.put(name, statics._decimalType);
        }
        return statics._decimalType;
    }
View Full Code Here


            String name = "XML";
            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._xmlType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_xml);
            statics._xmlType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._xmlType);
            statics.builtins.put(name, statics._xmlType);
        }
        return statics._xmlType;
    }
View Full Code Here

            String name = "RegExp";
            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._regExpType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_object);
            statics._regExpType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._regExpType);
            statics.builtins.put(name, statics._regExpType);
        }
        return statics._regExpType;
    }
View Full Code Here

            String name = "XMLList";
            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._xmlListType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_xml);
            statics._xmlListType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._xmlListType);
            statics.builtins.put(name, statics._xmlListType);
        }
        return statics._xmlListType;
    }
View Full Code Here

            String name = "Vector";
            QName qname = new QName(getNamespace("__AS3__.vec"), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._vectorType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_object);
            statics._vectorType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._vectorType);
            statics._vectorType.is_parameterized = true;
            statics.builtins.put(qname.toString(), statics._vectorType);
        }
        return statics._vectorType;
    }
View Full Code Here

            String name = "Vector$object";
            QName qname = new QName(getNamespace("__AS3__.vec", Context.NS_INTERNAL), name);
            ObjectValue protected_namespace = getNamespace(qname.toString(), NS_PROTECTED);
            ObjectValue static_protected_namespace = getNamespace(qname.toString(), NS_STATIC_PROTECTED);
            statics._vectorObjType = new TypeValue(this, new ClassBuilder(qname,protected_namespace,static_protected_namespace), qname, TYPE_object);
            statics._vectorObjType.prototype = new ObjectValue(this, new InstanceBuilder(qname), statics._vectorObjType);
            statics.builtins.put(qname.toString(), statics._vectorObjType);
        }
        return statics._vectorObjType;
    }
View Full Code Here

  public String[] getInterfaceNames()
  {
        if( interfaceNames == null )
        {
            InstanceBuilder bui = (InstanceBuilder)cframe.prototype.builder;
            int size = bui.interface_refs.size();
            interfaceNames = new String[size];
            for( int i = 0; i < size; ++i)
            {
                ReferenceValue referenceValue = bui.interface_refs.at(i);
View Full Code Here

  private void doCtorSetup(FunctionCommonNode node, Context cx, boolean needs_activation) {
    // Call super constructor
    this.is_ctor = true;
    int scope_depth = cx.getScopes().size();
    ObjectValue iframe = cx.scope(scope_depth-2);
    InstanceBuilder ib = iframe.builder instanceof InstanceBuilder ? (InstanceBuilder) iframe.builder : null;

    /* // Invoke iinit

    int method_info = GetMethodInfo(iframe.builder.classname+"$iinit");

View Full Code Here

    public Value evaluate(Context cx, SuperStatementNode node)
    {
        int scope_depth = cx.getScopes().size();
        ObjectValue iframe = cx.scope(scope_depth-2);
        InstanceBuilder ib = iframe.builder instanceof InstanceBuilder ? (InstanceBuilder) iframe.builder : null;
        Namespaces namespaces = new Namespaces();
        namespaces.add(cx.publicNamespace());

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

        // This should fill in this type
        cframe = TypeValue.defineTypeValue(cx, new ClassBuilder(pname, prot_ns, static_prot_ns), pname, TYPE_object);

        cframe.type = cx.typeType().getDefaultTypeInfo();
        ObjectValue iframe = new ObjectValue(cx,new InstanceBuilder(pname),cframe);
        cframe.prototype = iframe;

        //  TODO: Allow for other parameterized types some day.
        TypeValue uninstantiated_generic = cx.vectorObjType();
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.