Package org.openrewrite.python.marker
Class PythonExtraPadding
java.lang.Object
org.openrewrite.python.marker.PythonExtraPadding
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.openrewrite.java.tree.Spaceget(org.openrewrite.Tree tree, PythonExtraPadding.Location loc) static org.openrewrite.java.tree.SpacegetOrDefault(org.openrewrite.Tree tree, PythonExtraPadding.Location loc) static <T extends org.openrewrite.Tree>
Tset(T tree, PythonExtraPadding.Location loc, org.openrewrite.java.tree.Space space) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.marker.Marker
getId, print, withId
-
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)
-