public final class JJavaName extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isFullyQualifiedClassName(String sName)
Checks if the given string is a valid fully qualified name.
|
static boolean |
isJavaIdentifier(String s)
Checks if a given string is usable as a Java identifier.
|
static boolean |
isJavaPackageName(String sName)
Checks if the given string is a valid Java package name.
|
public static boolean isJavaIdentifier(@Nonnull String s)
s
- Source stringtrue
if the string is a valid Java identifierpublic static boolean isFullyQualifiedClassName(String sName)
sName
- Source string to checktrue
if it is a valid fully qualified class namepublic static boolean isJavaPackageName(String sName)
sName
- Source string to checktrue
if it is a valid Java package nameCopyright © 2013–2015 Philip Helger. All rights reserved.