Class PlaceItemsShorthandResolver

    • Field Detail

      • LOGGER

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

      • PlaceItemsShorthandResolver

        public PlaceItemsShorthandResolver()
    • 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
      • resolveShorthandWithOneWord

        private java.util.List<CssDeclaration> resolveShorthandWithOneWord​(java.lang.String firstWord)
      • resolveShorthandWithTwoWords

        private java.util.List<CssDeclaration> resolveShorthandWithTwoWords​(java.lang.String firstWord,
                                                                            java.lang.String secondWord)
      • resolveShorthandWithThreeWords

        private java.util.List<CssDeclaration> resolveShorthandWithThreeWords​(java.lang.String firstWord,
                                                                              java.lang.String secondWord,
                                                                              java.lang.String thirdWord)
      • resolveShorthandWithFourWords

        private java.util.List<CssDeclaration> resolveShorthandWithFourWords​(java.lang.String firstWord,
                                                                             java.lang.String secondWord,
                                                                             java.lang.String thirdWord,
                                                                             java.lang.String fourthWord)
      • resolveAlignItemsAndJustifyItems

        private java.util.List<CssDeclaration> resolveAlignItemsAndJustifyItems​(java.lang.String alignItems,
                                                                                java.lang.String justifyItems)
      • handleExpressionError

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