| java.lang.Object org.netbeans.modules.iep.project.anttasks.NameUtil
NameUtil | public class NameUtil (Code) | | DOCUMENT ME!
author: Bing Lu |
getJUid | public static String getJUid()(Code) | | Returns a legal java identifier that is globally unique.
the uid value |
isJavaKeyword | public static boolean isJavaKeyword(String s)(Code) | | Is given string a Java reserved keyword?
Parameters: s - the string to test to see if it is a reserved Java keyword true if the given string is a java keyword andfalse if it is not |
isLegalName | public static boolean isLegalName(String s)(Code) | | true if s in a legal java identifier that contains no $, s is not a Java keyword,
and s is not a class name in java.lang.* package
|
main | public static void main(String[] args)(Code) | | The main program for the GenUtil class
Parameters: args - The command line arguments |
makeJavaId | public static String makeJavaId(String str)(Code) | | Given a string, strip it to a legal Java identifier. Characters that are
not legal are removed; if the 1st char would be legal as 2nd but not as
1st, prefix "_"; if identifier is in list of reserved words, prefix "_";
if no legal chars remain, return "_".
Parameters: str - the string to make into a legal java identifier the legal java/XML identifier |
|
|