Class TerminatingBlocksFinder

    • Constructor Detail

      • TerminatingBlocksFinder

        public TerminatingBlocksFinder()
    • Method Detail

      • getInstance

        public static TerminatingBlocksFinder getInstance()
        Returns the singleton instance for TerminatingBlocksFinder.
      • startsWithNumber

        private static boolean startsWithNumber​(java.lang.String t,
                                                int len,
                                                java.lang.String... str)
        Checks whether the given text t starts with a sequence of digits, followed by one of the given strings.
        Parameters:
        t - The text to examine
        len - The length of the text to examine
        str - Any strings that may follow the digits.
        Returns:
        true if at least one combination matches
      • isDigit

        private static boolean isDigit​(char c)