public abstract class RegexTokenFilter extends RegexFilter
MULTILINE, pattern, SINGLELINE, substituteinitialContext| Constructor and Description |
|---|
RegexTokenFilter() |
RegexTokenFilter(String regex)
create a new regular expression and set
|
RegexTokenFilter(String regex,
boolean multiline)
create a new regular expression and set
|
| Modifier and Type | Method and Description |
|---|---|
String |
filter(String input,
FilterContext context) |
abstract void |
handleMatch(StringBuffer buffer,
MatchResult result,
FilterContext context)
Method is called for every occurance of a regular expression.
|
protected void |
setUp(FilterContext context) |
addRegex, addRegex, clearRegexbefore, getDescription, replaces, setInitialContextpublic RegexTokenFilter()
public RegexTokenFilter(String regex, boolean multiline)
public RegexTokenFilter(String regex)
protected void setUp(FilterContext context)
public abstract void handleMatch(StringBuffer buffer, MatchResult result, FilterContext context)
buffer - Buffer to write replacement string toresult - Hit with the found regualr expressioncontext - FilterContext for filterspublic String filter(String input, FilterContext context)
filter in interface Filterfilter in class RegexFilterCopyright © 2003–2018 Sakai Project. All rights reserved.