Package org.openrewrite.gradle
Class SanitizedMarkerPrinter
java.lang.Object
org.openrewrite.gradle.SanitizedMarkerPrinter
- All Implemented Interfaces:
org.openrewrite.PrintOutputCapture.MarkerPrinter
public class SanitizedMarkerPrinter
extends Object
implements org.openrewrite.PrintOutputCapture.MarkerPrinter
A
PrintOutputCapture that sanitizes the diff of informational markers,
so these aren't accidentally committed to source control.-
Field Summary
Fields inherited from interface org.openrewrite.PrintOutputCapture.MarkerPrinter
DEFAULT, FENCED, SANITIZED, VERBOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper) beforeSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.PrintOutputCapture.MarkerPrinter
beforePrefix
-
Constructor Details
-
SanitizedMarkerPrinter
public SanitizedMarkerPrinter()
-
-
Method Details
-
beforeSyntax
public String beforeSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper) - Specified by:
beforeSyntaxin interfaceorg.openrewrite.PrintOutputCapture.MarkerPrinter
-
afterSyntax
public String afterSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper) - Specified by:
afterSyntaxin interfaceorg.openrewrite.PrintOutputCapture.MarkerPrinter
-