Class IdentUtils

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

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

    Modifier and Type
    Method
    Description
    static boolean
    isIdentifierPart(int codePoint)
    Determines if the specified character may be part of an ECMAScript identifier as other than the first character.
    static boolean
    isIdentifierStart(int codePoint)
    Determines if the specified character is permissible as the first character in a ECMAScript identifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.