public abstract class AbstractFormatter extends Object implements SourceCodeFormatter
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMENTS_REPLACEMENT |
static String |
KEYWORD_REPLACEMENT |
static String |
LINE_COMMENTS |
static String |
OBJECT_REPLACEMENT |
static String |
QUOTES |
static String |
QUOTES_REPLACEMENT |
protected List |
replacers |
| Constructor and Description |
|---|
AbstractFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addReplacement(String pattern,
String replacement) |
String |
format(String code,
String language)
Convert source code into HTML.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedLanguagespublic static final String QUOTES
public static final String LINE_COMMENTS
public static final String QUOTES_REPLACEMENT
public static final String COMMENTS_REPLACEMENT
public static final String KEYWORD_REPLACEMENT
public static final String OBJECT_REPLACEMENT
protected List replacers
public String format(String code, String language)
SourceCodeFormatterformat in interface SourceCodeFormattercode - the source code as a stringlanguage - the programming language that it is believed this code is written inCopyright © 2015 Atlassian. All rights reserved.