Interface CssFunction<T>

Type Parameters:
T - the element type of the DOM
All Known Implementing Classes:
AbstractCssFunction, AbstractMathCssFunction, AbstractStringCssFunction, AttrCssFunction, CalcCssFunction, ConcatCssFunction, ReplaceCssFunction, RoundCssFunction, VarCssFunction

public interface CssFunction<T>
Interface for CSS macro functions. A CSS macro function processes CssTokens.
  • Method Details

    • process

      void process(T element, CssTokenizer tt, SelectorModel<T> model, CssFunctionProcessor<T> functionProcessor, Consumer<CssToken> out, Deque<CssFunction<T>> recursionStack) throws IOException, ParseException
      Processes the function.
      Parameters:
      element - the DOM element
      tt - the tokenizer providing the unprocessed tokens
      model - the selector model
      functionProcessor - the function processor
      out - the consumer for the processed tokens
      recursionStack - the recursion stack
      Throws:
      IOException - on IO failure
      ParseException - on parsing failure
    • getHelpText

      String getHelpText()
      Gets localized help text about this function.
      Returns:
      localized help text
    • getName

      String getName()
      Returns the function name.
      Returns:
      the function name