Class AbstractBoxShorthandResolver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String _0_BOTTOM_1
      The template for -bottom properties.
      private static java.lang.String _0_LEFT_1
      The template for -left properties.
      private static java.lang.String _0_RIGHT_1
      The template for -right properties.
      private static java.lang.String _0_TOP_1
      The template for -top properties.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.String getPostfix()
      Gets the postfix of a property.
      protected abstract java.lang.String getPrefix()
      Gets the prefix of a property.
      java.util.List<CssDeclaration> resolveShorthand​(java.lang.String shorthandExpression)
      Resolves a shorthand expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _0_LEFT_1

        private static final java.lang.String _0_LEFT_1
        The template for -left properties.
        See Also:
        Constant Field Values
      • _0_RIGHT_1

        private static final java.lang.String _0_RIGHT_1
        The template for -right properties.
        See Also:
        Constant Field Values
      • _0_BOTTOM_1

        private static final java.lang.String _0_BOTTOM_1
        The template for -bottom properties.
        See Also:
        Constant Field Values
      • _0_TOP_1

        private static final java.lang.String _0_TOP_1
        The template for -top properties.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractBoxShorthandResolver

        public AbstractBoxShorthandResolver()
    • Method Detail

      • getPrefix

        protected abstract java.lang.String getPrefix()
        Gets the prefix of a property.
        Returns:
        the prefix
      • getPostfix

        protected abstract java.lang.String getPostfix()
        Gets the postfix of a property.
        Returns:
        the postfix
      • resolveShorthand

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