Class CssFunctionNode.Function
- java.lang.Object
-
- com.google.common.css.compiler.ast.CssFunctionNode.Function
-
- Enclosing class:
- CssFunctionNode
public abstract static class CssFunctionNode.Function extends java.lang.ObjectContains the list of recognized CSS functions.
-
-
Field Summary
Fields Modifier and Type Field Description static CssFunctionNode.FunctionCUSTOMServes as a placeholder for custom functions.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CssFunctionNode.FunctionbyName(java.lang.String name)Returns the CSSCssFunctionNode.Functionwith the specified name, ornullif the name is not in the list of recognized names.java.lang.StringgetFunctionName()abstract booleanisRecognized()Returnstruewhen this function is in the list of recognized names.java.lang.StringtoString()For debugging only.
-
-
-
Field Detail
-
CUSTOM
public static final CssFunctionNode.Function CUSTOM
Serves as a placeholder for custom functions.
-
-
Method Detail
-
byName
public static CssFunctionNode.Function byName(java.lang.String name)
Returns the CSSCssFunctionNode.Functionwith the specified name, ornullif 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, useCUSTOM.- Parameters:
name- name
-
isRecognized
public abstract boolean isRecognized()
Returnstruewhen 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:
toStringin classjava.lang.Object
-
-