Package flex2.compiler.abc

Examples of flex2.compiler.abc.Variable


        }
    }

    public static void logWarning(String path, int line, int col, String warning, String source)
    {
        Logger l = logger.get();
        if (l != null)
        {
            l.logWarning(path, line, col, warning, source);
        }
        else
        {
            System.err.println(path + ": line " + line + ", col " + col + " - " + warning);
            System.err.println(source);
View Full Code Here


        }
    }

    public static void logWarning(String path, int line, int col, String warning, String source, int errorCode)
    {
        Logger l = logger.get();
        if (l != null)
        {
            l.logWarning(path, line, col, warning, source, errorCode);
        }
        else
        {
            System.err.println(path + ": line " + line + ", col " + col + " - " + warning);
            System.err.println(source);
View Full Code Here

        }
    }

    public static void logError(String path, int line, int col, String error, String source)
    {
        Logger l = logger.get();
        if (l != null)
        {
            l.logError(path, line, col, error, source);
        }
        else
        {
            System.err.println(path + ": line " + line + ", col " + col + " - " + error);
            System.err.println(source);
View Full Code Here

        }
    }

    public static void logError(String path, int line, int col, String error, String source, int errorCode)
    {
        Logger l = logger.get();
        if (l != null)
        {
            l.logError(path, line, col, error, source, errorCode);
        }
        else
        {
            System.err.println(path + ": line " + line + ", col " + col + " - " + error);
            System.err.println(source);
View Full Code Here

        log(m);
    }

    public static void log( ILocalizableMessage m )
    {
        Logger logger = getLogger();

        if (logger != null)
        {
            logger.log( m );
        }
    }
View Full Code Here

        }
    }

    public static void log( ILocalizableMessage m, String source)
    {
        Logger logger = getLogger();

        if (logger != null)
        {
            logger.log( m, source );
        }
    }
View Full Code Here

        findEvents(context, name, multiName, pos, watcher, null);
    }

    private static Variable getVariable(Context cx, AbcClass watchedClass, ReferenceValue ref, MultiName multiName)
    {
        Variable var = null;
        Slot s;
        if( ref != null )
        {
            // if ref.slot is non-null then the reference has already been resolved.
            if( ref.slot != null && ref.getKind() == Tokens.GET_TOKEN)
View Full Code Here

                List metaData = watchedClass.getMetaData(BINDABLE, true);
                boolean foundEvents = addBindables(watcher, metaData);
                boolean foundSource = false;

                Variable variable = getVariable(context, watchedClass, ref, multiName);

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

                    // Object has a public static const variable names "length", which is
                    // some legacy compatibility crap left over from EMCA script 262, so
                    // we ignore it.
                    if (variable.isConst() &&
                        !(multiName.getLocalPart().equals("length") &&
                          variable.getDeclaringClassName().equals(SymbolTable.OBJECT)))
                    {
                        // We didn't really find any events, but we want
                        // to follow the same code path below as if we did.
                        foundEvents = true;
                        //    TODO will this ever be something besides a PropertyWatcher?
                        if (watcher instanceof PropertyWatcher)
                        {
                            ((PropertyWatcher) watcher).suppress();
                        }
                    }

                    // See comment above.
                    if (!(multiName.getLocalPart().equals("length") &&
                          variable.getDeclaringClassName().equals(SymbolTable.OBJECT)))
                    {
                        checkForStaticProperty(variable.isStatic(), watcher, srcTypeName);
                    }

                    foundSource = true;
                }
View Full Code Here

    {
        Iterator<Variable> variables = hostComponentClass.getVarIterator();

        while (variables.hasNext())
        {
            Variable variable = variables.next();

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

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

        Iterator<Method> get_iter = hostComponentClass.getGetterIterator();
View Full Code Here

    {
        for (MetaData skinPartsMetaData : skinPartsMetaDataList)
        {
            String skinPartTypeName = null;

            Variable variable = skinClass.getVariable(PUBLIC_NAMESPACE, hostSkinPartName, true);

            if (variable != null)
            {
                skinPartTypeName = variable.getTypeName();
            }
            else
            {
                Method getter = skinClass.getGetter(PUBLIC_NAMESPACE, hostSkinPartName, true);
View Full Code Here

TOP

Related Classes of flex2.compiler.abc.Variable

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.