java.lang.Object
org.jhotdraw8.css.function.AbstractCssFunction<T>
org.jhotdraw8.css.function.AbstractStringCssFunction<T>
org.jhotdraw8.css.function.ReplaceCssFunction<T>
- Type Parameters:
T- the element type of the DOM
- All Implemented Interfaces:
CssFunction<T>
Processes the replace() function.
replace = "replace(", string, [","], regex, [","], replacement, ")" ;
string = string-token ;
regex = string-token ;
replacement = string-token ;
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets localized help text about this function.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.Methods inherited from class org.jhotdraw8.css.function.AbstractStringCssFunction
evalStringMethods inherited from class org.jhotdraw8.css.function.AbstractCssFunction
getName
-
Field Details
-
NAME
Function name.- See Also:
-
-
Constructor Details
-
ReplaceCssFunction
public ReplaceCssFunction() -
ReplaceCssFunction
-
-
Method Details
-
process
public 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 Description copied from interface:CssFunctionProcesses 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
Description copied from interface:CssFunctionGets localized help text about this function.- Returns:
- localized help text
-