Class CorrectorBase

    • Constructor Summary

      Constructors 
      Constructor Description
      CorrectorBase​(java.lang.String name, java.nio.file.Path root, java.util.Set<java.lang.String> excludes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.stream.Stream<java.nio.file.Path> allFiles()  
      protected boolean filter​(java.nio.file.Path p)  
      java.util.Set<java.nio.file.Path> getChangedFiles()  
      protected static java.util.Optional<java.lang.String> getExtension​(java.lang.String filename)  
      protected static java.util.Optional<java.lang.String> getExtension​(java.nio.file.Path p)  
      java.nio.file.Path getRoot()  
      protected void overwrite​(java.nio.file.Path file, java.util.List<java.lang.String> lines)  
      • Methods inherited from class java.lang.Object

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

      • CorrectorBase

        public CorrectorBase​(java.lang.String name,
                             java.nio.file.Path root,
                             java.util.Set<java.lang.String> excludes)
    • Method Detail

      • allFiles

        protected java.util.stream.Stream<java.nio.file.Path> allFiles()
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getRoot

        public java.nio.file.Path getRoot()
      • getChangedFiles

        public java.util.Set<java.nio.file.Path> getChangedFiles()
      • filter

        protected boolean filter​(java.nio.file.Path p)
      • overwrite

        protected void overwrite​(java.nio.file.Path file,
                                 java.util.List<java.lang.String> lines)
      • getExtension

        protected static java.util.Optional<java.lang.String> getExtension​(java.nio.file.Path p)
      • getExtension

        protected static java.util.Optional<java.lang.String> getExtension​(java.lang.String filename)