protected abstract static class AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression> extends Object implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractDoubleEncapsulatedExpressionHelper(AbstractGrammarValidator validator) |
Modifier and Type | Method and Description |
---|---|
String[] |
arguments(T expression)
Returns the arguments that can help to format the localized problem.
|
protected abstract String |
firstExpressionInvalidKey() |
protected int |
firstExpressionLength(T expression) |
protected abstract 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) |
String |
identifier(T expression)
Returns the JPQL identifier of the given
AbstractEncapsulatedExpression . |
protected boolean |
isFirstExpressionValid(T expression) |
protected boolean |
isSecondExpressionValid(T expression) |
protected abstract String |
missingCommaKey() |
protected abstract String |
secondExpressionInvalidKey() |
protected int |
secondExpressionLength(T expression) |
protected abstract String |
secondExpressionMissingKey() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
leftParenthesisMissingKey, rightParenthesisMissingKey
protected AbstractDoubleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
public String[] arguments(T expression)
arguments
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedprotected abstract String firstExpressionInvalidKey()
protected int firstExpressionLength(T expression)
protected abstract 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 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 String missingCommaKey()
protected abstract String secondExpressionInvalidKey()
protected int secondExpressionLength(T expression)
protected abstract String secondExpressionMissingKey()
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.