buildProblem(Expression expression, int startIndex, int endIndex, java.lang.String messageKey, java.lang.String... messageArguments)
Creates a new validation problem that was found in the given Expression.

addProblem

Adds a new validation problem that was found in the given Expression. The start index is the position of the given Expression within the JPQL query and the end index is the end position of the Expression within the JPQL query.

Parameters:

expression - The Expression that is either not following the BNF grammar or that has semantic problems

messageKey - The key used to retrieve the localized message describing the problem

addProblem

Adds a new validation problem that was found in the given Expression. The start index is the position of the given Expression within the JPQL query and the end index is the end position of the Expression within the JPQL query.

Parameters:

expression - The Expression that is either not following the BNF grammar or that has semantic problems

messageKey - The key used to retrieve the localized message describing the problem

messageArguments - The list of arguments that can be used to format the localized description of the problem

isValidJavaIdentifier

Determines whether the given variable is a valid Java identifier, which means it follows the Java specification. The first letter has to be a Java identifier start and the others have to be Java identifier parts.

Parameters:

variable - The variable to validate

Returns:

true if the given variable follows the Java identifier specification; false otherwise