Class CssFunctionNode.Function
java.lang.Object
com.google.common.css.compiler.ast.CssFunctionNode.Function
- Enclosing class:
- CssFunctionNode
Contains the list of recognized CSS functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CssFunctionNode.FunctionServes as a placeholder for custom functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic CssFunctionNode.FunctionReturns the CSSCssFunctionNode.Functionwith the specified name, ornullif the name is not in the list of recognized names.abstract booleanReturnstruewhen this function is in the list of recognized names.toString()For debugging only.
-
Field Details
-
CUSTOM
Serves as a placeholder for custom functions.
-
-
Method Details
-
byName
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
- Returns:
- the name of the CSS function, such as "rgb" or "url"
-
toString
For debugging only.
-