Class IdentUtils
java.lang.Object
com.oracle.js.parser.IdentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisIdentifierPart(int codePoint) Determines if the specified character may be part of an ECMAScript identifier as other than the first character.static booleanisIdentifierStart(int codePoint) Determines if the specified character is permissible as the first character in a ECMAScript identifier.
-
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:
trueif the character may start an ECMAScript identifier, returnsfalseotherwise.
-
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:
trueif the character may be part of an ECMAScript identifier, returnsfalseotherwise.
-