Class Utilities

  • public abstract class Utilities
    extends Object
    Various utility functions for use in the compiler.
    • Constructor Detail

      • Utilities

        public Utilities()
    • Method Detail

      • repeatString

        public static String repeatString​(String pattern,
                                          int repeats)
        Returns a string made up of repetitions of the specified string.
      • eol

        public static String eol()
        Returns the end-of-line marker.
      • isJavaIdentifier

        public static boolean isJavaIdentifier​(String name)
        Tells if the given string is a valid Java identifier.