protected abstract class AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression> extends java.lang.Object implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
arguments(T expression)
Returns the arguments that can help to format the localized problem.
|
protected abstract java.lang.String |
firstExpressionInvalidKey() |
protected int |
firstExpressionLength(T expression) |
protected abstract java.lang.String |
firstExpressionMissingKey() |
protected boolean |
hasComma(T expression) |
protected boolean |
hasFirstExpression(T expression) |
boolean |
hasLeftParenthesis(T expression)
Determines whether the given
AbstractEncapsulatedExpression has the left parenthesis. |
boolean |
hasRightParenthesis(T expression)
Determines whether the given
AbstractEncapsulatedExpression has the right parenthesis. |
protected boolean |
hasSecondExpression(T expression) |
java.lang.String |
identifier(T expression)
Returns the JPQL identifier of the given
AbstractEncapsulatedExpression . |
protected boolean |
isFirstExpressionValid(T expression) |
protected boolean |
isSecondExpressionValid(T expression) |
protected abstract java.lang.String |
missingCommaKey() |
protected abstract java.lang.String |
secondExpressionInvalidKey() |
protected int |
secondExpressionLength(T expression) |
protected abstract java.lang.String |
secondExpressionMissingKey() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
leftParenthesisMissingKey, rightParenthesisMissingKey
protected AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper()
public java.lang.String[] arguments(T expression)
arguments
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedprotected abstract java.lang.String firstExpressionInvalidKey()
protected int firstExpressionLength(T expression)
protected abstract java.lang.String firstExpressionMissingKey()
protected boolean hasComma(T expression)
protected boolean hasFirstExpression(T expression)
public boolean hasLeftParenthesis(T expression)
AbstractEncapsulatedExpression
has the left parenthesis.hasLeftParenthesis
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedtrue
if the left parenthesis was parsedpublic boolean hasRightParenthesis(T expression)
AbstractEncapsulatedExpression
has the right parenthesis.hasRightParenthesis
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedtrue
if the right parenthesis was parsedprotected boolean hasSecondExpression(T expression)
public java.lang.String identifier(T expression)
AbstractEncapsulatedExpression
.identifier
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedAbstractEncapsulatedExpression
protected final boolean isFirstExpressionValid(T expression)
protected final boolean isSecondExpressionValid(T expression)
protected abstract java.lang.String missingCommaKey()
protected abstract java.lang.String secondExpressionInvalidKey()
protected int secondExpressionLength(T expression)
protected abstract java.lang.String secondExpressionMissingKey()