public abstract class AbstractCacheableFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
encoding |
protected org.apache.maven.plugin.logging.Log |
log |
| Constructor and Description |
|---|
AbstractCacheableFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doFormat(String code,
LineEnding ending) |
Result |
formatFile(File file,
LineEnding ending,
boolean dryRun) |
protected abstract void |
init(Map<String,String> options,
ConfigurationSource cfg) |
protected void |
initCfg(ConfigurationSource cfg) |
protected org.apache.maven.plugin.logging.Log log
protected Charset encoding
protected abstract void init(Map<String,String> options, ConfigurationSource cfg)
protected void initCfg(ConfigurationSource cfg)
public Result formatFile(File file, LineEnding ending, boolean dryRun)
protected abstract String doFormat(String code, LineEnding ending) throws IOException, org.eclipse.jface.text.BadLocationException
IOExceptionorg.eclipse.jface.text.BadLocationExceptionCopyright © 2010–2018. All rights reserved.