Package org.eclipse.persistence.jpa.jpql
Class AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T>
-
- All Implemented Interfaces:
AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
- Enclosing class:
- AbstractGrammarValidator
protected abstract static class AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression> extends java.lang.Object implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTripleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
arguments(T expression)
Returns the arguments that can help to format the localized problem.protected abstract java.lang.String
firstCommaMissingKey()
protected abstract java.lang.String
firstExpressionInvalidKey()
protected int
firstExpressionLength(T expression)
protected abstract java.lang.String
firstExpressionMissingKey()
protected boolean
hasFirstExpression(T expression)
boolean
hasLeftParenthesis(T expression)
Determines whether the givenAbstractEncapsulatedExpression
has the left parenthesis.boolean
hasRightParenthesis(T expression)
Determines whether the givenAbstractEncapsulatedExpression
has the right parenthesis.protected boolean
hasSecondExpression(T expression)
protected boolean
hasThirdExpression(T expression)
protected boolean
isFirstExpressionValid(T expression)
protected boolean
isRightParenthesisMissing(T expression)
Determines whether the right parenthesis is missing from the given expression.protected boolean
isSecondExpressionValid(T expression)
protected boolean
isThirdExpressionValid(T expression)
protected abstract java.lang.String
secondCommaMissingKey()
protected abstract java.lang.String
secondExpressionInvalidKey()
protected int
secondExpressionLength(T expression)
protected abstract java.lang.String
secondExpressionMissingKey()
protected abstract java.lang.String
thirdExpressionInvalidKey()
protected int
thirdExpressionLength(T expression)
protected abstract java.lang.String
thirdExpressionMissingKey()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
identifier, leftParenthesisMissingKey, rightParenthesisMissingKey
-
-
-
-
Constructor Detail
-
AbstractTripleEncapsulatedExpressionHelper
protected AbstractTripleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
-
-
Method Detail
-
arguments
public java.lang.String[] arguments(T expression)
Returns the arguments that can help to format the localized problem.- Specified by:
arguments
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
- The list of arguments used to complete the localized problem
-
firstCommaMissingKey
protected abstract java.lang.String firstCommaMissingKey()
-
firstExpressionInvalidKey
protected abstract java.lang.String firstExpressionInvalidKey()
-
firstExpressionLength
protected int firstExpressionLength(T expression)
-
firstExpressionMissingKey
protected abstract java.lang.String firstExpressionMissingKey()
-
hasFirstExpression
protected boolean hasFirstExpression(T expression)
-
hasLeftParenthesis
public boolean hasLeftParenthesis(T expression)
Determines whether the givenAbstractEncapsulatedExpression
has the left parenthesis.- Specified by:
hasLeftParenthesis
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
true
if the left parenthesis was parsed
-
hasRightParenthesis
public boolean hasRightParenthesis(T expression)
Determines whether the givenAbstractEncapsulatedExpression
has the right parenthesis.- Specified by:
hasRightParenthesis
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
true
if the right parenthesis was parsed
-
hasSecondExpression
protected boolean hasSecondExpression(T expression)
-
hasThirdExpression
protected boolean hasThirdExpression(T expression)
-
isFirstExpressionValid
protected boolean isFirstExpressionValid(T expression)
-
isRightParenthesisMissing
protected boolean isRightParenthesisMissing(T expression)
Determines whether the right parenthesis is missing from the given expression.- Parameters:
expression
- TheExpression
to verify for the existence of the right parenthesis by determining if the encapsulated information has been parsed or not- Returns:
true
if the encapsulated information was parsed and the right parenthesis is missing;false
in any other case
-
isSecondExpressionValid
protected boolean isSecondExpressionValid(T expression)
-
isThirdExpressionValid
protected boolean isThirdExpressionValid(T expression)
-
secondCommaMissingKey
protected abstract java.lang.String secondCommaMissingKey()
-
secondExpressionInvalidKey
protected abstract java.lang.String secondExpressionInvalidKey()
-
secondExpressionLength
protected int secondExpressionLength(T expression)
-
secondExpressionMissingKey
protected abstract java.lang.String secondExpressionMissingKey()
-
thirdExpressionInvalidKey
protected abstract java.lang.String thirdExpressionInvalidKey()
-
thirdExpressionLength
protected int thirdExpressionLength(T expression)
-
thirdExpressionMissingKey
protected abstract java.lang.String thirdExpressionMissingKey()
-
-