- 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 Summary
Modifier and TypeMethodDescriptionGets localized help text about this function.getName()Returns the function name.voidprocess(@NonNull T element, @NonNull CssTokenizer tt, @NonNull SelectorModel<T> model, @NonNull CssFunctionProcessor<T> functionProcessor, @NonNull Consumer<CssToken> out, Deque<CssFunction<T>> recursionStack) Processes the function.
-
Method Details
-
process
void process(@NonNull T element, @NonNull CssTokenizer tt, @NonNull SelectorModel<T> model, @NonNull CssFunctionProcessor<T> functionProcessor, @NonNull Consumer<CssToken> out, Deque<CssFunction<T>> recursionStack) throws IOException, ParseException Processes the function.- Parameters:
element- the DOM elementtt- the tokenizer providing the unprocessed tokensmodel- the selector modelfunctionProcessor- the function processorout- the consumer for the processed tokensrecursionStack- the recursion stack- Throws:
IOException- on IO failureParseException- 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
-