Class FlexShorthandResolver

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • FlexShorthandResolver

        public FlexShorthandResolver()
    • Method Detail

      • resolveShorthand

        public java.util.List<CssDeclaration> resolveShorthand​(java.lang.String shorthandExpression)
        Resolves a shorthand expression.
        Specified by:
        resolveShorthand in interface IShorthandResolver
        Parameters:
        shorthandExpression - the shorthand expression
        Returns:
        a list of CSS declaration
      • resolveShorthandWithOneValue

        private java.util.List<CssDeclaration> resolveShorthandWithOneValue​(java.lang.String firstProperty)
      • resolveShorthandWithTwoValues

        private java.util.List<CssDeclaration> resolveShorthandWithTwoValues​(java.lang.String firstProperty,
                                                                             java.lang.String secondProperty)
      • resolveShorthandWithThreeValues

        private java.util.List<CssDeclaration> resolveShorthandWithThreeValues​(java.lang.String firstProperty,
                                                                               java.lang.String secondProperty,
                                                                               java.lang.String thirdProperty)
      • fillUnresolvedPropertiesWithDefaultValues

        private void fillUnresolvedPropertiesWithDefaultValues​(java.util.List<CssDeclaration> resolvedProperties)
      • handleExpressionError

        private static java.util.List<CssDeclaration> handleExpressionError​(java.lang.String logMessage,
                                                                            java.lang.String attribute,
                                                                            java.lang.String shorthandExpression)