public static boolean checkName ( String nameSpec , String identifier , LombokNode < ? , ? , ? > errorNode ) { if ( identifier . isEmpty ( ) ) { errorNode . addError ( nameSpec + " cannot be the empty string." ) ; return false ; } if ( ! JavaIdentifiers . isValidJavaIdentifier ( identifier ) ) { errorNode . addError ( nameSpec + " must be a valid java identifier." ) ; return false ; } return true ; }
Checks if the given name is a valid identifier .