|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T>
protected abstract class AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
The abstract implementation of AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper
which
implements some of the methods since the behavior is the same for all subclasses of
AbstractSingleEncapsulatedExpression
.
Constructor Summary | |
---|---|
protected |
AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper()
|
Method Summary | |
---|---|
java.lang.String[] |
arguments(T expression)
Returns the arguments that can help to format the localized problem. |
protected abstract java.lang.String |
encapsulatedExpressionInvalidKey(T expression)
Returns the message key for the problem describing that the encapsulated expression is invalid. |
protected int |
encapsulatedExpressionLength(T expression)
Returns the length of the encapsulated expression. |
protected abstract java.lang.String |
encapsulatedExpressionMissingKey(T expression)
Returns the message key for the problem describing that the encapsulated expression is missing. |
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. |
java.lang.String |
identifier(T expression)
Returns the JPQL identifier of the given AbstractEncapsulatedExpression . |
protected boolean |
isEncapsulatedExpressionMissing(T expression)
Determines whether there is an encapsulated expression or not. |
protected boolean |
isEncapsulatedExpressionValid(T expression)
Determines whether the encapsulated expression is valid. |
protected int |
lengthBeforeEncapsulatedExpression(T expression)
Returns the length after the left parenthesis and before the encapsulated expression starts. |
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 |
---|
leftParenthesisMissingKey, rightParenthesisMissingKey |
Constructor Detail |
---|
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper()
Method Detail |
---|
public java.lang.String[] arguments(T expression)
arguments
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validated
protected abstract java.lang.String encapsulatedExpressionInvalidKey(T expression)
expression
- The AbstractSingleEncapsulatedExpression
being validated
protected int encapsulatedExpressionLength(T expression)
expression
- AbstractSingleEncapsulatedExpression
being validated
protected abstract java.lang.String encapsulatedExpressionMissingKey(T expression)
expression
- The AbstractSingleEncapsulatedExpression
being validated
public boolean hasLeftParenthesis(T expression)
AbstractEncapsulatedExpression
has the left parenthesis.
hasLeftParenthesis
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validated
true
if the left parenthesis was parsedpublic boolean hasRightParenthesis(T expression)
AbstractEncapsulatedExpression
has the right parenthesis.
hasRightParenthesis
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validated
true
if the right parenthesis was parsedpublic final java.lang.String identifier(T expression)
AbstractEncapsulatedExpression
.
identifier
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validated
AbstractEncapsulatedExpression
protected boolean isEncapsulatedExpressionMissing(T expression)
expression
- The AbstractSingleEncapsulatedExpression
being validated
true
if the given AbstractSingleEncapsulatedExpression
has an
encapsulated expression; false
otherwiseprotected boolean isEncapsulatedExpressionValid(T expression)
expression
- The AbstractSingleEncapsulatedExpression
being validated
true
if the encapsulated expression is valid; false
otherwiseprotected int lengthBeforeEncapsulatedExpression(T expression)
By default, there is no text after the left parenthesis and the encapsulated expression but there are exceptions, such as the functions (AVG, COUNT, MIN, MAX, SUM).
expression
- The AbstractSingleEncapsulatedExpression
being validated
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |