Package flex2.compiler.abc

Examples of flex2.compiler.abc.MetaData


    return declMap.get(name);
  }

  public boolean isInheritingStyle(String name)
    {
    MetaData md = getStyle(name);
    return md != null && isInherit(md);
  }
View Full Code Here


    return md != null && isInherit(md);
  }

  public boolean isNonInheritingStyle(String name)
    {
    MetaData md = getStyle(name);
    return md != null && !isInherit(md);
  }
View Full Code Here

    /**
     * Look up a globally-defined style property
     */
    public Style getStyle(String styleName)
    {
        MetaData md = symbolTable.getStyle(styleName);
        return md == null ? null : new StyleHelper(styleName,
                                                   md.getValue("type"),
                                                   md.getValue("enumeration"),
                                                   md.getValue("format"),
                                                   md.getValue("inherit"),
                                                   md.getValue(Deprecated.DEPRECATED_MESSAGE),
                                                   md.getValue(Deprecated.DEPRECATED_REPLACEMENT),
                                                   md.getValue(Deprecated.DEPRECATED_SINCE));
    }
View Full Code Here

                effects = classInfo.getMetaData("Effect", true);
            }

            for (int i = 0, length = effects.size(); i < length; i++)
            {
                MetaData md = effects.get(i);
                if (name.equals(md.getValue(0)))
                {
                    return new EffectHelper(name,
                                            md.getValue("event"),
                                            md.getValue(Deprecated.DEPRECATED_MESSAGE),
                                            md.getValue(Deprecated.DEPRECATED_REPLACEMENT),
                                            md.getValue(Deprecated.DEPRECATED_SINCE));
                }
            }

            return null;
        }
View Full Code Here

            if (!isExcludedStyle(name))
            {
                for (int i = 0, length = styles.size(); i < length; i++)
                {
                    MetaData md = styles.get(i);

                    if (name.equals(md.getValue("name")))
                    {
                        String theme = md.getValue("theme");

                        if ((theme == null) || (themeNames == null) || hasTheme(theme))
                        {
                            return new StyleHelper(name,
                                                   md.getValue("type"),
                                                   md.getValue("enumeration"),
                                                   md.getValue("format"),
                                                   md.getValue("inherit"),
                                                   md.getValue(Deprecated.DEPRECATED_MESSAGE),
                                                   md.getValue(Deprecated.DEPRECATED_REPLACEMENT),
                                                   md.getValue(Deprecated.DEPRECATED_SINCE));
                        }
                    }
                }
            }
View Full Code Here

                styles = classInfo.getMetaData("Style", true);
            }

            for (int i = 0, length = styles.size(); i < length; i++)
            {
                MetaData md = styles.get(i);

                if (name.equals(md.getValue("name")))
                {
                    return md.getValue("theme");
                }
            }

            return null;
        }
View Full Code Here

        public boolean hasObsolete(String name)
        {
            List<MetaData> metadata = classInfo.getMetaData("Obsolete", false);
            for (int i = 0, length = metadata.size(); i < length; i++)
            {
                MetaData md = metadata.get(i);
                if (name.equals(md.getValue(0)))
                {
                    return true;
                }
            }
View Full Code Here

        public int getMaxChildren()
        {
            List<MetaData> metadata = classInfo.getMetaData("MaxChildren", true);
            if (!metadata.isEmpty())
            {
                MetaData md = metadata.get(0);
                return Integer.parseInt(md.getValue(0));
            }

            return 0;
        }
View Full Code Here

        public String getLoaderClass()
        {
            List<MetaData> metadata = classInfo.getMetaData("Frame", true);
            if (!metadata.isEmpty())
            {
                MetaData md = metadata.get(0);

                return md.getValue( "factoryClass" );
            }
            return null;
        }
View Full Code Here

            eventTypes = new HashMap<String, EventHelper>(events.size());

            for (int i = 0, length = events.size(); i < length; i++)
            {
                MetaData md = events.get(i);

                String name = md.getValue("name");
                String typeName = md.getValue("type");
               
                if (name != null)
                {
                    if (typeName == null)
                    {
                        // [Event(name="...")]
                        typeName = SymbolTable.EVENT;
                    }
                    else
                    {
                        // [Event(name="...",type="...")]
                        typeName = NameFormatter.toColon(typeName);
                    }
                }
                else
                {
                    // [Event("name")]
                    name = md.getValue(0);
                    typeName = SymbolTable.EVENT;
                }

                if (typeName != null)
                {
                    eventTypes.put(name, new EventHelper(name, typeName,
                                                         md.getValue(Deprecated.DEPRECATED_MESSAGE),
                                                         md.getValue(Deprecated.DEPRECATED_REPLACEMENT),
                                                         md.getValue(Deprecated.DEPRECATED_SINCE)));
                }
            }
        }
View Full Code Here

TOP

Related Classes of flex2.compiler.abc.MetaData

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.