Package flex2.compiler.abc

Examples of flex2.compiler.abc.Method


                    foundSource = true;
                }

                if (!foundEvents)
                {
                    Method getter = getGetter(context, watchedClass, ref, multiName);

                    if (getter != null)
                    {
                        metaData = getter.getMetaData(BINDABLE);
                        foundEvents = addBindables(watcher, metaData) || foundEvents;
                        metaData = getter.getMetaData(CHANGE_EVENT);
                        foundEvents = addChangeEvents(watcher, metaData) || foundEvents;
                        metaData = getter.getMetaData(NON_COMMITTING_CHANGE_EVENT);
                        foundEvents = addNonCommittingChangeEvents( watcher, metaData) || foundEvents;

                        checkForStaticProperty(getter.isStatic(), watcher, srcTypeName);

                        foundSource = true;
                    }

                    Method setter = getSetter(context, watchedClass, ref, multiName);

                    if (setter != null)
                    {
                        metaData = setter.getMetaData(BINDABLE);
                        foundEvents = addBindables(watcher, metaData) || foundEvents;
                        metaData = setter.getMetaData(CHANGE_EVENT);
                        foundEvents = addChangeEvents(watcher, metaData) || foundEvents;
                        metaData = setter.getMetaData(NON_COMMITTING_CHANGE_EVENT);
                        foundEvents = addNonCommittingChangeEvents(watcher, metaData) || foundEvents;

                        checkForStaticProperty(setter.isStatic(), watcher, srcTypeName);

                        foundSource = true;
                    }
                    else
                    {
                        if (getter != null)
                        {
                            //    getters without setters are de facto const, use same bypass as above for const vars
                            foundEvents = true;
                        }
                    }
                }

                if (!foundSource)
                {
                    Method function = getMethod(context, watchedClass, ref, multiName);

                    if (function != null)
                    {
                        metaData = function.getMetaData(BINDABLE);
                        foundEvents = addBindables(watcher, metaData) || foundEvents;
                        metaData = function.getMetaData(CHANGE_EVENT);
                        foundEvents = addChangeEvents(watcher, metaData) || foundEvents;
                        metaData = function.getMetaData(NON_COMMITTING_CHANGE_EVENT);
                        foundEvents = addNonCommittingChangeEvents(watcher, metaData) || foundEvents;
                        foundSource = true;

                        if (!foundEvents && callExpressionStack.isEmpty())
                        {
View Full Code Here


        Iterator<Method> get_iter = hostComponentClass.getGetterIterator();

        while ( get_iter.hasNext() )
        {
            Method getter = get_iter.next();

            List<MetaData> skinPartsMetaDataList = getter.getMetaData("SkinPart");

            if (skinPartsMetaDataList != null)
            {
                validateRequiredSkinParts(skinPartsMetaDataList, getter.getQName().getLocalPart(),
                                          getter.getReturnTypeName(), skinClass, typeTable, cx, position);
            }
        }

        // Validate up the inheritance chain
        String superTypeName = hostComponentClass.getSuperTypeName();
View Full Code Here

            {
                skinPartTypeName = variable.getTypeName();
            }
            else
            {
                Method getter = skinClass.getGetter(PUBLIC_NAMESPACE, hostSkinPartName, true);

                if (getter != null)
                {
                    skinPartTypeName = getter.getReturnTypeName();
                }
            }

            String required = skinPartsMetaData.getValue("required");
View Full Code Here

                        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);
                    }
View Full Code Here

                        return true;
                    }
                }
                else
                {
                    Method method = cls.getMethod(new String[] {SymbolTable.publicNamespace}, name, false);
                    if (method != null)
                    {
                        if (method.isStatic())
                        {
                            return true;
                        }
                    }
                }
View Full Code Here

        private Method findGetter(AbcClass cls, String name)
        {
            while (cls != null)
            {
                Method getter = cls.getGetter(new String[] {SymbolTable.publicNamespace},
                                              name, true);
                if (getter != null)
                {
                    return getter;
                }
View Full Code Here

        private Method findSetter(AbcClass cls, String name)
        {
            while (cls != null)
            {
                Method setter = cls.getSetter(new String[] {SymbolTable.publicNamespace},
                                              name, true);
                if (setter != null)
                {
                    return setter;
                }
View Full Code Here

        Iterator<Method> get_iter = abcClass.getGetterIterator();

        while(get_iter.hasNext())
        {
            Method getter = get_iter.next();
            QName getterName = getter.getQName();
            classInfo.addGetter(getterName);

            processSkinPartMetaData(getter.getMetaData(SKINPART), classInfo, getterName);
        }

        Iterator<Method> set_iter = abcClass.getSetterIterator();

        while(set_iter.hasNext())
View Full Code Here

      acc.setHeight(Integer.toString(config.getDefaultHeight()));
        acc.setWidth(Integer.toString(config.getDefaultWidth()));
        acc.setSwfVersion(config.getSwfVersion());
        acc.setScriptRecursionLimit(config.getScriptRecursionLimit());
        acc.setScriptTimeLimit(config.getScriptTimeLimit());
        CompilerConfiguration cc = acc.getCompilerConfiguration();
        cc.setAccessible(config.getCompilerAccessible());
        List<String> externalLibraries = config.getCompilerExternalLibraryPath();
        String[] extlibs = new String[externalLibraries.size()];
        externalLibraries.toArray(extlibs);
        try
        {
            cc.cfgExternalLibraryPath(null, extlibs);
        }
        catch (ConfigurationException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

            clean(false /* cleanData */, false /* cleanCache */, false /* cleanOutput */);
            return FAIL;
        }


        CompilerConfiguration compilerConfig = tempOEMConfiguration.configuration.getCompilerConfiguration();
        compilerConfig.setMetadataExport(true);


        clean(true /* cleanData */,
              false /* cleanCache */,
              false /* cleanOutput */,
 
View Full Code Here

TOP

Related Classes of flex2.compiler.abc.Method

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.