Examples of AbcClass


Examples of flex2.compiler.abc.AbcClass

  {
        String superTypeName = c.getSuperTypeName();

        if (superTypeName != null)
        {
            AbcClass sc = typeTable.getClass( NameFormatter.toColon(superTypeName) );

            if (sc != null)
            {
                List inherited = sc.getMetaData( "Frame", true );
                String inheritedLoaderClass = null;

                for (Iterator it = inherited.iterator(); it.hasNext();)
                {
                    MetaData md = (MetaData) it.next();
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

        for( Map.Entry<String, AbcClass> entry : interfaceUnit.classTable.entrySet() )
        {
            // Freeeze the clases generated for the interface file, so that we
            // can still access them when we are building the generated file.
            //System.out.println("Freezing " + entry.getKey());
            AbcClass c = entry.getValue();
            c.freeze();
        }

        Source.transferDependencies(interfaceUnit, unit);
        Source.transferLoaderClassBase(interfaceUnit, unit);
        Source.transferGeneratedSources(interfaceUnit, unit);
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

        Type type = typeMap.get(className);

        if (type == null)
        {
            // use symbolTable to lookup Class.
            AbcClass classInfo = symbolTable.getClass(className);

            if (classInfo != null)
            {
                type = new TypeHelper(classInfo, standardDefs);
                typeMap.put(className, type);
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

         * Property. variables, getters, setters, etc.
         * Searches specified namespaces
         */
        public Property getProperty(String[] namespaces, String name)
        {
            AbcClass cls = classInfo, superClass = null;

            // walk the superclass chain for the specified property...
            while (cls != null)
            {
                Variable var = cls.getVariable(namespaces, name, false);
                if (var != null)
                {
                    if (!var.isStatic())
                    {
                        // found the property as a variable...
                        return new PropertyHelper(var);
                    }
                    else
                    {
                        superClass = symbolTable.getClass(cls.getSuperTypeName());
                    }
                }
                else
                {
                    Method setter = cls.getSetter(namespaces, name, false);
                    Method getter = cls.getGetter(namespaces, name, false);
                    if (setter != null && getter != null)
                    {
                        // found the property as a pair of getter and setter...
                        return new PropertyHelper(setter, getter);
                    }

                    superClass = symbolTable.getClass(cls.getSuperTypeName());

                    if (setter != null && superClass != null)
                    {
                        // search for a superclass getter before creating PropertyHelper.
                        getter = findGetter(superClass, name);
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

        /**
         *
         */
        public boolean hasStaticMember(String name)
        {
            AbcClass cls = classInfo;

            // walk the superclass chain for the specified property...
            while (cls != null)
            {
                Variable var = cls.getVariable(SymbolTable.VISIBILITY_NAMESPACES, name, false);
                if (var != null)
                {
                    if (var.isStatic())
                    {
                        return true;
                    }
                }
                else
                {
                    Method method = cls.getMethod(new String[] {SymbolTable.publicNamespace}, name, false);
                    if (method != null)
                    {
                        if (method.isStatic())
                        {
                            return true;
                        }
                    }
                }

                cls = symbolTable.getClass(cls.getSuperTypeName());
            }

            return false;
        }
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

        MetaDataEvaluator printer = new MetaDataEvaluator();
        node.evaluate(cx, printer);

        ObjectList comments = printer.doccomments;

        AbcClass abcClass = typeTable.getClass(unit.topLevelDefinitions.first().toString());
        tab.addComments(unit.topLevelDefinitions.first(), comments, inheritance, flag, cx, abcClass);

        cx.popScope();       
    }
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

            {
                CompilationUnit compilationUnit = source.getCompilationUnit();

                if (compilationUnit != null)
                {
                    AbcClass abcClass = compilationUnit.classTable.get( qName.toString() );

                    if (abcClass != null)
                    {
                        buildInterfaceInfo(context, qName, abcClass);
                    }
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

                assert source != null : "no source for qname '" + qName + "', even though multiname was resolved";

                CompilationUnit compilationUnit = source.getCompilationUnit();

                AbcClass abcClass = compilationUnit.classTable.get( qName.toString() );

                if (abcClass != null)
                {
                    buildClassInfo(context, qName, abcClass);
                }
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

            if (baseInterfaceInfo == null)
            {
                CompilationUnit compilationUnit = source.getCompilationUnit();

                AbcClass abcClass = null;

                if (compilationUnit != null)
                {
                    abcClass = compilationUnit.classTable.get( qName.toString() );
View Full Code Here

Examples of flex2.compiler.abc.AbcClass

                }
            }

            for (Map.Entry<String, AbcClass> entry : unit.classTable.entrySet())
            {
                AbcClass c = entry.getValue();
                c.setTypeTable(typeTable);
                symbolTable.registerClass(entry.getKey(), c);
            }

      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.