Class Utils


  • public final class Utils
    extends Object
    Utility class containing static helper functions.
    Since:
    1.0.0
    • Method Detail

      • isIdentifier

        public static boolean isIdentifier​(CharSequence name)
        Returns whether name is a valid identifier.
        Parameters:
        name - the CharSequence to check
        Returns:
        whether name is a valid identifier
        Throws:
        NullPointerException - if name is null
        Since:
        1.0.0
      • getLangSpecSchema

        public static InputStream getLangSpecSchema()
        Returns an input stream from which the langspec schema can be read.
        Returns:
        an input stream from which the langspec schema can be read
        Since:
        1.0.0
      • getFormatVersion

        public static String getFormatVersion()
        Returns the format version as a String.
        Returns:
        the format version as a String
        Since:
        1.0.0