Package org.junit.platform.commons.util
Class PackageUtils.JavaNameUtils
java.lang.Object
org.junit.platform.commons.util.PackageUtils.JavaNameUtils
- Enclosing class:
- PackageUtils
Collection of utilities for working with qualified names in Java.
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isJavaIdentifier
(String name) (package private) static boolean
isJavaName
(String name) Determine if the suppliedname
is a syntactically valid qualified name.private static boolean
isNotRestrictedKeyword
(String name)
-
Field Details
-
RESTRICTED_KEYWORDS
-
-
Constructor Details
-
JavaNameUtils
JavaNameUtils()
-
-
Method Details
-
isJavaName
Determine if the suppliedname
is a syntactically valid qualified name.- Parameters:
name
- the string to check- Returns:
true
if the supplied string is a syntactically valid name
-
isNotRestrictedKeyword
-
isJavaIdentifier
-