Package spoon.support.sniper


package spoon.support.sniper
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk. All the other code is kept as is (formatting, newlines) as the original code. Public class: SniperJavaPrettyPrinter, to use it:
        launcher.getEnvironment().setPrettyPrinterCreator(() -> {
                        return new SniperJavaPrettyPrinter(launcher.getEnvironment());}
                );
 
See https://github.com/INRIA/spoon/issues/1284
  • Class Summary
    Class
    Description
    PrettyPrinter implementation, which copies as much as possible from the origin sources and tries to only print the changed elements.