Package org.auraframework.impl.css.parser.CssPreprocessor

Examples of org.auraframework.impl.css.parser.CssPreprocessor.ParserResult


            builder.setDescriptor(styleDefDesc);
            builder.setLocation(source.getSystemId(), source.getLastModified());
            builder.setClassName(className);
            builder.setOwnHash(source.getHash());

            ParserResult result = CssPreprocessor
                    .initial()
                    .source(source.getContents())
                    .resourceName(source.getSystemId())
                    .componentClass(className, shouldValidate(descriptor.getName()))
                    .allowedConditions(allowedConditions)
                    .themes(styleDefDesc)
                    .parse();

            builder.setContent(result.content());
            builder.setThemeExpressions(result.themeExpressions());

            return (D) builder.build();
        } else if (descriptor.getDefType() == DefType.RESOURCE) {
            return (D) new ResourceDefHandler<ResourceDef>((DefDescriptor<ResourceDef>) descriptor,
                    (Source<ResourceDef>) source).createDefinition();
View Full Code Here

TOP

Related Classes of org.auraframework.impl.css.parser.CssPreprocessor.ParserResult

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.