Package org.openrewrite.python.tree
Class PySpace
java.lang.Object
org.openrewrite.python.tree.PySpace
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openrewrite.java.tree.SpaceappendComment(org.openrewrite.java.tree.Space space, String commentWithHash) static org.openrewrite.java.tree.SpaceappendWhitespace(org.openrewrite.java.tree.Space space, String whitespace) static org.openrewrite.java.tree.Spacedeindent(org.openrewrite.java.tree.Space original, String indentWithoutNewline, PySpace.IndentStartMode startMode, PySpace.IndentEndMode endMode) static org.openrewrite.java.tree.Spacereindent(org.openrewrite.java.tree.Space original, String indentWithoutNewline, PySpace.IndentStartMode startMode, PySpace.IndentEndMode endMode) static org.openrewrite.java.tree.SpacestripIndent(org.openrewrite.java.tree.Space space, String expectedIndent)
-
Method Details
-
appendWhitespace
public static org.openrewrite.java.tree.Space appendWhitespace(org.openrewrite.java.tree.Space space, String whitespace) -
appendComment
public static org.openrewrite.java.tree.Space appendComment(org.openrewrite.java.tree.Space space, String commentWithHash) -
reindent
public static org.openrewrite.java.tree.Space reindent(org.openrewrite.java.tree.Space original, String indentWithoutNewline, PySpace.IndentStartMode startMode, PySpace.IndentEndMode endMode) -
deindent
public static org.openrewrite.java.tree.Space deindent(org.openrewrite.java.tree.Space original, String indentWithoutNewline, PySpace.IndentStartMode startMode, PySpace.IndentEndMode endMode) -
stripIndent
public static org.openrewrite.java.tree.Space stripIndent(org.openrewrite.java.tree.Space space, String expectedIndent)
-