Class GoogleJavaFormatTool

  • All Implemented Interfaces:
    javax.tools.Tool

    @AutoService(javax.tools.Tool.class)
    public class GoogleJavaFormatTool
    extends java.lang.Object
    implements javax.tools.Tool
    Provide a way to be invoked without necessarily starting a new VM.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<javax.lang.model.SourceVersion> getSourceVersions()  
      java.lang.String name()  
      int run​(java.io.InputStream in, java.io.OutputStream out, java.io.OutputStream err, java.lang.String... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleJavaFormatTool

        public GoogleJavaFormatTool()
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface javax.tools.Tool
      • getSourceVersions

        public java.util.Set<javax.lang.model.SourceVersion> getSourceVersions()
        Specified by:
        getSourceVersions in interface javax.tools.Tool
      • run

        public int run​(java.io.InputStream in,
                       java.io.OutputStream out,
                       java.io.OutputStream err,
                       java.lang.String... args)
        Specified by:
        run in interface javax.tools.Tool