private boolean isTemplateNamePart(char ch){
  return !Character.isWhitespace(ch) && ch != '(' && ch != ')' && ch != '{' && ch != '}' && ch != ';' && ch != '>';
}

private boolean isTemplateNamePart ( char ch ) { return ! Character . isWhitespace ( ch ) && ch != '(' && ch != ')' && ch != '{' && ch != '}' && ch != ';' && ch != '>' ; }
tells whether the given character can be part of a template name .
