Package org.junit.platform.commons.util
Class PackageUtils.JavaNameUtils
- java.lang.Object
-
- org.junit.platform.commons.util.PackageUtils.JavaNameUtils
-
- Enclosing class:
- PackageUtils
static class PackageUtils.JavaNameUtils extends java.lang.Object
Collection of utilities for working with qualified names in Java.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
RESTRICTED_KEYWORDS
-
Constructor Summary
Constructors Constructor Description JavaNameUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
isJavaIdentifier(java.lang.String name)
(package private) static boolean
isJavaName(java.lang.String name)
Determine if the suppliedname
is a syntactically valid qualified name.private static boolean
isNotRestrictedKeyword(java.lang.String name)
-
-
-
Method Detail
-
isJavaName
static boolean isJavaName(java.lang.String name)
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
private static boolean isNotRestrictedKeyword(java.lang.String name)
-
isJavaIdentifier
private static boolean isJavaIdentifier(java.lang.String name)
-
-