Class PreEscapeMathFilter
- java.lang.Object
-
- org.radeox.filter.FilterSupport
-
- org.radeox.filter.regex.RegexFilter
-
- org.radeox.filter.regex.RegexTokenFilter
-
- uk.ac.cam.caret.sakai.rwiki.component.filter.PreEscapeMathFilter
-
- All Implemented Interfaces:
CacheFilter,Filter
public class PreEscapeMathFilter extends RegexTokenFilter implements CacheFilter
-
-
Field Summary
-
Fields inherited from class org.radeox.filter.regex.RegexFilter
MULTILINE, pattern, SINGLELINE, substitute
-
Fields inherited from class org.radeox.filter.FilterSupport
initialContext
-
-
Constructor Summary
Constructors Constructor Description PreEscapeMathFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]before()voidescape(StringBuffer buffer, String toEscape)voidhandleMatch(StringBuffer buffer, MatchResult result, FilterContext context)Method is called for every occurance of a regular expression.-
Methods inherited from class org.radeox.filter.regex.RegexTokenFilter
filter, setUp
-
Methods inherited from class org.radeox.filter.regex.RegexFilter
addRegex, addRegex, clearRegex
-
Methods inherited from class org.radeox.filter.FilterSupport
getDescription, replaces, setInitialContext
-
-
-
-
Method Detail
-
handleMatch
public void handleMatch(StringBuffer buffer, MatchResult result, FilterContext context)
Description copied from class:RegexTokenFilterMethod is called for every occurance of a regular expression. Subclasses have to implement this mehtod.- Specified by:
handleMatchin classRegexTokenFilter- Parameters:
buffer- Buffer to write replacement string toresult- Hit with the found regualr expressioncontext- FilterContext for filters
-
escape
public void escape(StringBuffer buffer, String toEscape)
-
before
public String[] before()
- Specified by:
beforein interfaceFilter- Overrides:
beforein classFilterSupport
-
-