Class IdentUtils

java.lang.Object
com.oracle.js.parser.IdentUtils

public final class IdentUtils extends Object
Utility methods for parsing of identifiers.
  • Method Details

    • isIdentifierStart

      public static boolean isIdentifierStart(int codePoint)
      Determines if the specified character is permissible as the first character in a ECMAScript identifier.
      Parameters:
      codePoint - the character to be tested
      Returns:
      true if the character may start an ECMAScript identifier, returns false otherwise.
    • isIdentifierPart

      public static boolean isIdentifierPart(int codePoint)
      Determines if the specified character may be part of an ECMAScript identifier as other than the first character.
      Parameters:
      codePoint - the character to be tested
      Returns:
      true if the character may be part of an ECMAScript identifier, returns false otherwise.