Class JNaming
java.lang.Object
org.codehaus.modello.plugin.java.javasource.JNaming
A utility class used to validate identifiers
and class names
- Version:
- $Revision$ $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if the given String is a Java keyword which will cause a problem when used as a variable namestatic boolean
isValidJavaIdentifier
(String string) Returns true if the given String matches the production of a valid Java identifier
-
Field Details
-
keywords
-
-
Constructor Details
-
JNaming
private JNaming()
-
-
Method Details
-
isKeyword
Returns true if the given String is a Java keyword which will cause a problem when used as a variable name -
isValidJavaIdentifier
Returns true if the given String matches the production of a valid Java identifier- 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
-