Package macromedia.asc.embedding.avmplus

Examples of macromedia.asc.embedding.avmplus.InstanceBuilder


        // 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


  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

      {
        queue.add(type.baseclass);
      }
     
      // Queue interfaces
      final InstanceBuilder ibui = (InstanceBuilder)type.prototype.builder;
      if (ibui.interface_refs != null)
      {
        if (superInterfaces || !type.isInterface())
        {
          for (int i = 0, size = ibui.interface_refs.size(); i < size; i++)
View Full Code Here

        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

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.