Package org.apache.flex.compiler.css

Examples of org.apache.flex.compiler.css.ICSSPropertyValue


    {
        super(tree, tokenStream, CSSModelTreeType.FONT_FACE);

        assert properties != null : "Properties can't be null for @font-face.";

        ICSSPropertyValue srcValue = null;
        ICSSPropertyValue fontFamilyValue = null;
        ICSSPropertyValue fontStyleValue = null;
        ICSSPropertyValue fontWeightValue = null;
        ICSSPropertyValue embedAsCFFValue = null;
        ICSSPropertyValue advancedAAValue = null;

        for (final ICSSProperty property : properties)
        {
            final String name = property.getName();
            final ICSSPropertyValue value = property.getValue();
            if (name.equals("src"))
            {
                srcValue = value;
            }
            else if (name.equals("fontFamily"))
View Full Code Here


    public PairOfInstructionLists reduceProperty(ICSSNode site)
    {
        assert site instanceof ICSSProperty : "Expected ICSSProperty node but got " + site.getClass().getName();
        final ICSSProperty propertyNode = (ICSSProperty)site;
        final String name = propertyNode.getName();
        final ICSSPropertyValue value = propertyNode.getValue();
        final InstructionList inst = new InstructionList();

        final InstructionList valueInstructions = getInstructionListForPropertyValue(value);
        if (!valueInstructions.isEmpty())
        {
View Full Code Here

        assert classReferences != null : "Expected an output collection for ClassReferences.";
        assert embedCompilationUnits != null : "Expected an output collection for Embed.";

        for (final ICSSProperty property : cssRule.getProperties())
        {
            final ICSSPropertyValue propertyValue = property.getValue();
            if (propertyValue instanceof CSSFunctionCallPropertyValue)
            {
                final CSSFunctionCallPropertyValue functionCall = (CSSFunctionCallPropertyValue)propertyValue;
                if (CSSFunctionCallPropertyValue.CLASS_REFERENCE.equals(functionCall.name))
                {
View Full Code Here

        for (final ICSSProperty prop : plist)
        {
            result.append(",\n");
            result.append("\"" + prop.getName() + "\"");
            result.append(",\n");
            ICSSPropertyValue value = prop.getValue();
            if (value instanceof CSSArrayPropertyValue)
            {
                ImmutableList<? extends ICSSPropertyValue> values = ((CSSArrayPropertyValue)value).getElements();
                result.append("[");
                boolean firstone = true;
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.css.ICSSPropertyValue

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.