public final class NamingUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isJavaIdentifier(java.lang.String name)
Returns
true if the specified String is a valid Java identifier. |
static boolean |
isJavaKeyword(java.lang.String name)
Returns
true if the specified String is a Java keyword. |
static boolean |
isJavaReservedWord(java.lang.String name)
Returns
true if the specified String is a Java reserved word. |
static boolean |
isPackageIdentifier(java.lang.String name)
Returns
true if the specified String is a valid package identifier. |
public static boolean isJavaKeyword(java.lang.String name)
true
if the specified String
is a Java keyword.name
- the String
to test.public static boolean isJavaReservedWord(java.lang.String name)
true
if the specified String
is a Java reserved word. A Java reserved word is either a keyword, a boolean literal, or the null literal.name
- the String
to test.public static boolean isJavaIdentifier(java.lang.String name)
true
if the specified String
is a valid Java identifier.name
- the String
to test.public static boolean isPackageIdentifier(java.lang.String name)
true
if the specified String
is a valid package identifier.