Class WhitespaceChecks


  • public class WhitespaceChecks
    extends java.lang.Object
    • 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)