Class CSSExpressionMemberFunction

    • Constructor Detail

      • CSSExpressionMemberFunction

        public CSSExpressionMemberFunction​(@Nonnull @Nonempty
                                           String sFunctionName)
        Constructor without an expression
        Parameters:
        sFunctionName - Function name. May neither be null nor empty.
      • CSSExpressionMemberFunction

        public CSSExpressionMemberFunction​(@Nonnull @Nonempty
                                           String sFunctionName,
                                           @Nullable
                                           CSSExpression aExpression)
        Constructor
        Parameters:
        sFunctionName - Function name. May neither be null nor empty.
        aExpression - Optional parameter expression. May be null.
    • Method Detail

      • getFunctionName

        @Nonnull
        @Nonempty
        public final String getFunctionName()
        Returns:
        The passed function name. Neither null nor empty.
      • isExpressionFunction

        public boolean isExpressionFunction()
        Returns:
        true if this is a special IE "expression" function. This makes a difference, because in case of IE expression functions, no parameter splitting takes place!
      • getExpression

        @Nullable
        public final CSSExpression getExpression()
        Returns:
        The optional expression parameter. May be null.
      • hasExpression

        public final boolean hasExpression()
        Returns:
        true of an expression parameter is present, false otherwise.
        Since:
        5.0.0
      • getAsCSSString

        @Nonnull
        @Nonempty
        public String getAsCSSString​(@Nonnull
                                     ICSSWriterSettings aSettings,
                                     @Nonnegative
                                     int nIndentLevel)
        Description copied from interface: ICSSWriteable
        Get the contents of this object as a serialized CSS string for writing to an output.
        Specified by:
        getAsCSSString in interface ICSSWriteable
        Parameters:
        aSettings - The settings to be used to format the output. May not be null.
        nIndentLevel - The current indentation level
        Returns:
        The content of this object as CSS string. Never null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object