Class ResolveCustomFunctionNodes

java.lang.Object
com.google.common.css.compiler.ast.DefaultTreeVisitor
com.google.common.css.compiler.passes.ResolveCustomFunctionNodes
All Implemented Interfaces:
AtRuleHandler, CssCompilerPass, CssTreeVisitor
Direct Known Subclasses:
ResolveCustomFunctionNodesForChunks

public class ResolveCustomFunctionNodes extends DefaultTreeVisitor implements CssCompilerPass
This compiler pass replaces CssCustomFunctionNode instances with the list of nodes returned by the GssFunction.
  • Field Details

  • Constructor Details

    • ResolveCustomFunctionNodes

      public ResolveCustomFunctionNodes(MutatingVisitController visitController, ErrorManager errorManager, Map<String,GssFunction> functionMap)
      Constructs the pass.
      Parameters:
      visitController - The visit controller
      errorManager - The error manager
      functionMap - The map from function names to resolve to GSS functions
    • ResolveCustomFunctionNodes

      public ResolveCustomFunctionNodes(MutatingVisitController visitController, ErrorManager errorManager, Map<String,GssFunction> functionMap, boolean allowUnknownFunctions)
      Constructs the pass.
      Parameters:
      visitController - The visit controller
      errorManager - The error manager
      functionMap - The map from function names to resolve to GSS functions
      allowUnknownFunctions - Whether to allow unknown function calls, leaving them as is, instead of reporting an error
    • ResolveCustomFunctionNodes

      public ResolveCustomFunctionNodes(MutatingVisitController visitController, ErrorManager errorManager, Map<String,GssFunction> functionMap, boolean allowUnknownFunctions, Set<String> allowedNonStandardFunctions)
      Constructs the pass.
      Parameters:
      visitController - The visit controller
      errorManager - The error manager
      functionMap - The map from function names to resolve to GSS functions
      allowUnknownFunctions - Whether to allow unknown function calls, leaving them as is, instead of reporting an error
      allowedNonStandardFunctions - functions that should not yield a warning if they appear in a stylesheet
  • Method Details