Class PythonExtraPadding

java.lang.Object
org.openrewrite.python.marker.PythonExtraPadding
All Implemented Interfaces:
org.openrewrite.marker.Marker

public class PythonExtraPadding extends Object implements org.openrewrite.marker.Marker
For use as a last resort when Python elements semantically fit into the `J` scheme, but lack the fields to store the necessary padding.
  • Constructor Details

    • PythonExtraPadding

      public PythonExtraPadding()
  • Method Details

    • get

      @Nullable public static @Nullable org.openrewrite.java.tree.Space get(org.openrewrite.Tree tree, PythonExtraPadding.Location loc)
    • getOrDefault

      public static org.openrewrite.java.tree.Space getOrDefault(org.openrewrite.Tree tree, PythonExtraPadding.Location loc)
    • set

      public static <T extends org.openrewrite.Tree> T set(T tree, PythonExtraPadding.Location loc, org.openrewrite.java.tree.Space space)