Class CorrectorBase
- java.lang.Object
-
- org.modelingvalue.gradle.mvgplugin.CorrectorBase
-
- Direct Known Subclasses:
EolCorrector,HeaderCorrector,VersionCorrector
public abstract class CorrectorBase extends java.lang.Object
-
-
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 booleanfilter(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.PathgetRoot()protected voidoverwrite(java.nio.file.Path file, java.util.List<java.lang.String> lines)
-
-
-
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)
-
-