Class GssFunctions.MakeTranslucent
java.lang.Object
com.google.common.css.compiler.gssfunctions.GssFunctions.MakeTranslucent
- All Implemented Interfaces:
GssFunction
- Enclosing class:
- GssFunctions
Takes an input color and sets its alpha component without affecting
the RGB components.
Usage: makeTranslucent(existingColor, alphaValue);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCallResultNodes(List<CssValueNode> args, ErrorManager errorManager) Processes a list of function call arguments and returns a list of CssNodes representing this call's output, which replace the input nodes in the AST.getCallResultString(List<String> args) Processes a list of strings as function arguments and returns a string result.Returns the number of parsed arguments that this function takes, ornullif the number of arguments may vary.protected CssValueNodemakeTranslucent(String inputColorStr, String alphaStr, SourceCodeLocation sourceCodeLocation)
-
Constructor Details
-
MakeTranslucent
public MakeTranslucent()
-
-
Method Details
-
getNumExpectedArguments
Description copied from interface:GssFunctionReturns the number of parsed arguments that this function takes, ornullif the number of arguments may vary.- Specified by:
getNumExpectedArgumentsin interfaceGssFunction
-
getCallResultNodes
Description copied from interface:GssFunctionProcesses a list of function call arguments and returns a list of CssNodes representing this call's output, which replace the input nodes in the AST. Errors will be reported to the ErrorManager.- Specified by:
getCallResultNodesin interfaceGssFunction
-
getCallResultString
Description copied from interface:GssFunctionProcesses a list of strings as function arguments and returns a string result. Errors are reported by throwingGssFunctionException.- Specified by:
getCallResultStringin interfaceGssFunction
-
makeTranslucent
protected CssValueNode makeTranslucent(String inputColorStr, String alphaStr, @Nullable SourceCodeLocation sourceCodeLocation)
-