Package net.revelc.code.formatter.java
Class JavaFormatter
- java.lang.Object
-
- net.revelc.code.formatter.AbstractCacheableFormatter
-
- net.revelc.code.formatter.java.JavaFormatter
-
- All Implemented Interfaces:
net.revelc.code.formatter.Formatter
public class JavaFormatter extends net.revelc.code.formatter.AbstractCacheableFormatter implements net.revelc.code.formatter.Formatter
-
-
Constructor Summary
Constructors Constructor Description JavaFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class net.revelc.code.formatter.AbstractCacheableFormatter
formatFile, initCfg
-
-
-
-
Method Detail
-
init
public void init(Map<String,String> options, net.revelc.code.formatter.ConfigurationSource cfg)
- Specified by:
init
in interfacenet.revelc.code.formatter.Formatter
- Specified by:
init
in classnet.revelc.code.formatter.AbstractCacheableFormatter
-
doFormat
public String doFormat(String code, net.revelc.code.formatter.LineEnding ending) throws IOException, org.eclipse.jface.text.BadLocationException
- Specified by:
doFormat
in classnet.revelc.code.formatter.AbstractCacheableFormatter
- Throws:
IOException
org.eclipse.jface.text.BadLocationException
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized
in interfacenet.revelc.code.formatter.Formatter
-
-