Class CssFunctionNode.Function

  • Enclosing class:
    CssFunctionNode

    public abstract static class CssFunctionNode.Function
    extends java.lang.Object
    Contains the list of recognized CSS functions.
    • Method Detail

      • byName

        public static CssFunctionNode.Function byName​(java.lang.String name)
        Returns the CSS CssFunctionNode.Function with the specified name, or null if the name is not in the list of recognized names. Multiple invocations of this method with the same parameter will return the same object. For a function that is not in the list of recognized names but should be considered valid, use CUSTOM.
        Parameters:
        name - name
      • isRecognized

        public abstract boolean isRecognized()
        Returns true when this function is in the list of recognized names.
      • getFunctionName

        public java.lang.String getFunctionName()
        Returns:
        the name of the CSS function, such as "rgb" or "url"
      • toString

        public java.lang.String toString()
        For debugging only.
        Overrides:
        toString in class java.lang.Object