public String getValidJavaIdentifier ( String name ) { if ( ! Character . isJavaIdentifierStart ( name . charAt ( 0 ) ) ) { name = "z" + name ; } return name ; }
Provides a valid java identifier from the given name . Currently only checks for a valid start character and adds z if the name has an invalid character at the start .