com.xpn.xwiki.render.macro
Class XWikiJavaCodeFilter
java.lang.Object
org.radeox.filter.FilterSupport
org.radeox.filter.regex.RegexFilter
org.radeox.filter.regex.RegexReplaceFilter
org.radeox.macro.code.DefaultRegexCodeFormatter
com.xpn.xwiki.render.macro.XWikiJavaCodeFilter
- All Implemented Interfaces:
- org.radeox.filter.Filter, org.radeox.macro.code.SourceCodeFormatter
public class XWikiJavaCodeFilter
- extends org.radeox.macro.code.DefaultRegexCodeFormatter
- implements org.radeox.macro.code.SourceCodeFormatter
Redefinition of the Java code formatter (org.radeox.macro.code.JavaCodeFilter
) from Radeox. This was needed
because of the inefficient regular expression for detecting string literals, which caused exponential rendering times
for certain inputs.
- Version:
- $Id: 20bbcc0cacbc69eff4be051f847b768f06b8f783 $
Fields inherited from class org.radeox.filter.regex.RegexFilter |
MULTILINE, pattern, SINGLELINE, substitute |
Fields inherited from class org.radeox.filter.FilterSupport |
initialContext |
Constructor Summary |
XWikiJavaCodeFilter()
Default constructor, adds filters for java keywords, class names and string literals. |
Methods inherited from class org.radeox.filter.regex.RegexReplaceFilter |
filter |
Methods inherited from class org.radeox.filter.regex.RegexFilter |
addRegex, addRegex, clearRegex |
Methods inherited from class org.radeox.filter.FilterSupport |
before, getDescription, replaces, setInitialContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.radeox.macro.code.SourceCodeFormatter |
filter |
XWikiJavaCodeFilter
public XWikiJavaCodeFilter()
- Default constructor, adds filters for java keywords, class names and string literals.
getName
public String getName()
- Specified by:
getName
in interface org.radeox.macro.code.SourceCodeFormatter
getPriority
public int getPriority()
-
- Specified by:
getPriority
in interface org.radeox.macro.code.SourceCodeFormatter
- Overrides:
getPriority
in class org.radeox.macro.code.DefaultRegexCodeFormatter
Copyright © 2004-2013 XWiki. All Rights Reserved.