Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public abstract Class LogicalExpression

extends CompoundExpression
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.OrExpression, org.eclipse.persistence.jpa.jpql.parser.AndExpression
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This expression represents a logical expression, which means the first and second expressions are aggregated with either AND or OR.
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
protected
LogicalExpression(AbstractExpression
The parent of this expression
parent
,
String
The identifier of this expression
identifier
)

Creates a new LogicalExpression.

Method Summary

Modifier and TypeMethod and Description
public final JPQLQueryBNF
protected boolean
isParsingComplete(WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The word that was retrieved from the given text, which is the first word in the text
word
,
Expression
The Expression that has already been parsed
expression
)

Overrides org.eclipse.persistence.jpa.jpql.parser.AbstractExpression.isParsingComplete.

Determines whether the parsing is complete based on what is left in the given text.
protected String
parseIdentifier(WordParser
The WordParser containing the text to parse, which starts with the identifier
wordParser
)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.parseIdentifier.

Parses the identifier of this expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.CompoundExpression:
acceptChildrenaddChildrenToaddOrderedChildrenTofindQueryBNFgetActualIdentifiergetIdentifiergetLeftExpressiongetLeftExpressionQueryBNFIdgetRightExpressiongetRightExpressionQueryBNFIdhasLeftExpressionhasRightExpressionhasSpaceAfterIdentifierparsesetLeftExpressionsetRightExpressiontoParsedText

Constructor Detail

LogicalExpressionback to summary
protected LogicalExpression(AbstractExpression parent, String identifier)

Creates a new LogicalExpression.

Parameters
parent:AbstractExpression

The parent of this expression

identifier:String

The identifier of this expression

Method Detail

getQueryBNFback to summary
public final JPQLQueryBNF getQueryBNF()

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Returns the BNF of this Expression.

Returns:JPQLQueryBNF

The JPQLQueryBNF, which represents the grammar of this Expression

Annotations
@Override
isParsingCompleteback to summary
protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression)

Overrides org.eclipse.persistence.jpa.jpql.parser.AbstractExpression.isParsingComplete.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractExpression.isParsingComplete.

Determines whether the parsing is complete based on what is left in the given text. The text is never empty.

Parameters
wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The word that was retrieved from the given text, which is the first word in the text

expression:Expression

The Expression that has already been parsed

Returns:boolean

true if the text no longer can't be parsed by the current expression; false if more can be parsed

Annotations
@Override
parseIdentifierback to summary
protected String parseIdentifier(WordParser wordParser)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.parseIdentifier.

Doc from org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.parseIdentifier.

Parses the identifier of this expression.

Parameters
wordParser:WordParser

The WordParser containing the text to parse, which starts with the identifier

Returns:String

The identifier for this expression

Annotations
@Override