Class WhitespaceChecks
- java.lang.Object
-
- org.openrewrite.checkstyle.check.internal.WhitespaceChecks
-
public class WhitespaceChecks extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanprefixStartsWithNonLinebreakWhitespace(org.openrewrite.Tree t)static booleanstartsWithNonLinebreakWhitespace(java.lang.String prefixOrSuffix)static <T extends org.openrewrite.Tree>
TstripPrefixUpToLinebreak(T t)static <T extends org.openrewrite.Tree>
TstripSuffixUpToLinebreak(T t)static java.lang.StringstripUpToLinebreak(java.lang.String prefixOrSuffix)static booleansuffixStartsWithNonLinebreakWhitespace(org.openrewrite.Tree t)
-
-
-
Method Detail
-
prefixStartsWithNonLinebreakWhitespace
public static boolean prefixStartsWithNonLinebreakWhitespace(@Nullable org.openrewrite.Tree t)
-
suffixStartsWithNonLinebreakWhitespace
public static boolean suffixStartsWithNonLinebreakWhitespace(@Nullable org.openrewrite.Tree t)
-
startsWithNonLinebreakWhitespace
public static boolean startsWithNonLinebreakWhitespace(java.lang.String prefixOrSuffix)
-
stripSuffixUpToLinebreak
public static <T extends org.openrewrite.Tree> T stripSuffixUpToLinebreak(@Nullable T t)
-
stripPrefixUpToLinebreak
public static <T extends org.openrewrite.Tree> T stripPrefixUpToLinebreak(@Nullable T t)
-
stripUpToLinebreak
public static java.lang.String stripUpToLinebreak(java.lang.String prefixOrSuffix)
-
-