Class SourcePostprocessorImpl
- java.lang.Object
-
- io.github.mkoncek.classpathless.impl.SourcePostprocessorImpl
-
- All Implemented Interfaces:
SourcePostprocessor
- Direct Known Subclasses:
AddAbstract
public abstract class SourcePostprocessorImpl extends Object implements SourcePostprocessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.github.mkoncek.classpathless.api.SourcePostprocessor
SourcePostprocessor.Null, SourcePostprocessor.Result
-
-
Constructor Summary
Constructors Constructor Description SourcePostprocessorImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
makeAbstract(String source, long lineNum, long columnNum)
Addabstract
keyword before the class at given coordinates.static Collection<CompilationError>
sortBackwards(Collection<CompilationError> compilationErrors)
Sort the errors backwards so that the source code fixes can be applied on the same file if possible.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mkoncek.classpathless.api.SourcePostprocessor
postprocess
-
-
-
-
Method Detail
-
sortBackwards
public static Collection<CompilationError> sortBackwards(Collection<CompilationError> compilationErrors)
Sort the errors backwards so that the source code fixes can be applied on the same file if possible.- Parameters:
compilationErrors
- The collection of compilation errors.- Returns:
- Sorted compilation errors.
-
-