Class CssFunctionNode.Function

java.lang.Object
com.google.common.css.compiler.ast.CssFunctionNode.Function
Enclosing class:
CssFunctionNode

public abstract static class CssFunctionNode.Function extends Object
Contains the list of recognized CSS functions.
  • Field Details

  • Method Details

    • byName

      public static CssFunctionNode.Function byName(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 String getFunctionName()
      Returns:
      the name of the CSS function, such as "rgb" or "url"
    • toString

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