org.exolab.javasource
public final class JNaming extends Object
Version: $Revision: 6324 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Method Summary | |
---|---|
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.
|
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.
|
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
|
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. |
static boolean | isValidJavaIdentifier(String string)
Returns true if the given String matches the production of a valid Java
identifier.
|
Parameters: name the String to check against the list of keywords
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
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 as a parameterized Java collection
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 against the list of keywords
Returns: true if the given String is a reserved name by Castor which may cause a problem when used as a variable name.
Parameters: string the String to check the production of
Returns: true if the given String matches the production of a valid Java name, otherwise false.