public class JavaFormatter
extends net.revelc.code.formatter.AbstractCacheableFormatter
implements net.revelc.code.formatter.Formatter
| Constructor and Description |
|---|
JavaFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
doFormat(String code,
net.revelc.code.formatter.LineEnding ending) |
void |
init(Map<String,String> options,
net.revelc.code.formatter.ConfigurationSource cfg) |
boolean |
isInitialized() |
formatFile, initCfgpublic void init(Map<String,String> options, net.revelc.code.formatter.ConfigurationSource cfg)
init in interface net.revelc.code.formatter.Formatterinit in class net.revelc.code.formatter.AbstractCacheableFormatterpublic String doFormat(String code, net.revelc.code.formatter.LineEnding ending) throws IOException, org.eclipse.jface.text.BadLocationException
doFormat in class net.revelc.code.formatter.AbstractCacheableFormatterIOExceptionorg.eclipse.jface.text.BadLocationExceptionpublic boolean isInitialized()
isInitialized in interface net.revelc.code.formatter.FormatterCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.