protected abstract static class AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression> extends Object implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractTripleEncapsulatedExpressionHelper(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 |
firstCommaMissingKey() |
protected abstract String |
firstExpressionInvalidKey() |
protected int |
firstExpressionLength(T expression) |
protected abstract String |
firstExpressionMissingKey() |
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) |
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 String |
secondCommaMissingKey() |
protected abstract String |
secondExpressionInvalidKey() |
protected int |
secondExpressionLength(T expression) |
protected abstract String |
secondExpressionMissingKey() |
protected abstract String |
thirdExpressionInvalidKey() |
protected int |
thirdExpressionLength(T expression) |
protected abstract String |
thirdExpressionMissingKey() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifier, leftParenthesisMissingKey, rightParenthesisMissingKey
protected AbstractTripleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
public String[] arguments(T expression)
arguments
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedprotected abstract String firstCommaMissingKey()
protected abstract String firstExpressionInvalidKey()
protected int firstExpressionLength(T expression)
protected abstract String firstExpressionMissingKey()
protected boolean hasFirstExpression(T expression)
public boolean hasLeftParenthesis(T expression)
AbstractEncapsulatedExpression
has the left parenthesis.hasLeftParenthesis
in interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
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 AbstractTripleEncapsulatedExpression>
expression
- The AbstractEncapsulatedExpression
being validatedtrue
if the right parenthesis was parsedprotected boolean hasSecondExpression(T expression)
protected boolean hasThirdExpression(T expression)
protected boolean isFirstExpressionValid(T expression)
protected boolean isRightParenthesisMissing(T expression)
expression
- The Expression
to verify for the existence of the right parenthesis
by determining if the encapsulated information has been parsed or nottrue
if the encapsulated information was parsed and the right parenthesis
is missing; false
in any other caseprotected boolean isSecondExpressionValid(T expression)
protected boolean isThirdExpressionValid(T expression)
protected abstract String secondCommaMissingKey()
protected abstract String secondExpressionInvalidKey()
protected int secondExpressionLength(T expression)
protected abstract String secondExpressionMissingKey()
protected abstract String thirdExpressionInvalidKey()
protected int thirdExpressionLength(T expression)
protected abstract String thirdExpressionMissingKey()
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.