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

public abstract Class AbstractLiteralExpressionFactory

extends ExpressionFactory
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.EntityTypeLiteralFactory, org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpressionFactory, org.eclipse.persistence.jpa.jpql.parser.JoinCollectionValuedPathExpressionFactory, org.eclipse.persistence.jpa.jpql.parser.LiteralExpressionFactory, org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpressionFactory
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This factory is responsible to return the right literal expression.
Author
Pascal Filion
Since
2.3
Version
2.5
See Also
StringLiteral, InputParameter, NumericLiteral, KeywordExpression, StateFieldPathExpression, IdentificationVariable

Constructor Summary

AccessConstructor and Description
protected
AbstractLiteralExpressionFactory(String
The unique identifier of this ExpressionFactory
id
)

Creates a new AbstractLiteralExpressionFactory.

Method Summary

Modifier and TypeMethod and Description
protected abstract AbstractExpression

Returns:

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position
buildExpression
(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Creates the actual AbstractExpression this factory manages.

protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.
protected boolean
isCollection()

Determines

Inherited from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory:
addIdentifieraddIdentifierscompareToequalsgetExpressionRegistrygetIdhashCodeidentifierssetExpressionRegistrytoString

Constructor Detail

AbstractLiteralExpressionFactoryback to summary
protected AbstractLiteralExpressionFactory(String id)

Creates a new AbstractLiteralExpressionFactory.

Parameters
id:String

The unique identifier of this ExpressionFactory

Method Detail

buildExpressionback to summary
protected abstract AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, AbstractExpression expression, boolean tolerant)

Creates the actual AbstractExpression this factory manages.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

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

word:String

The current word being parsed

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

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

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
isCollectionback to summary
protected boolean isCollection()

Determines