Class 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 Detail

      • JavaFormatter

        public JavaFormatter()
    • Method Detail

      • init

        public void init​(Map<String,​String> options,
                         net.revelc.code.formatter.ConfigurationSource cfg)
        Specified by:
        init in interface net.revelc.code.formatter.Formatter
        Specified by:
        init in class net.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 class net.revelc.code.formatter.AbstractCacheableFormatter
        Throws:
        IOException
        org.eclipse.jface.text.BadLocationException
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface net.revelc.code.formatter.Formatter