Method Summary |
|
public static String | getLocalNameFromClassName(String className) Returns the local class name from the given fully qualified class name.
Parameters: className - An arbitrary class name, optionally including a package. |
public static String | getPackageFromClassName(String className) Returns the package name from the given class name.
Parameters: className - An arbitrary class name, optionally including a package. |
public static boolean | isInJavaLang(String name) Returns true if the given String is a Java class in java.lang.* which
will cause a problem when used as a variable name.
Parameters: name - The String to check against the list of keywords. |
public static boolean | isKeyword(String name) Returns true if the given String is a Java keyword which will cause a
problem when used as a variable name.
Parameters: name - The String to check against the list of keywords. |
public static boolean | isParameterizedCollectionsObject(String name) Returns true if the given String is a parameterized Java collection.
object keyword which will cause a problem when used as a variable name
Parameters: name - The String to check as a parameterized Java collection. |
public static boolean | isReservedByCastor(String name) Returns true if the given String is a reserved name by Castor which may
cause a problem when used as a variable name. |
public static boolean | isReservedByWindows(String name) Returns true if the given String is a reserved name by the Windows
filesystem which will cause a problem when used as a class name under
Windows.
Parameters: name - The String to check against the list of keywords. |
public static boolean | isValidJavaIdentifier(String string) Returns true if the given String matches the production of a valid Java
identifier.
Parameters: string - The String to check the production of. |