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

public final Class LiteralExpressionFactory

extends AbstractLiteralExpressionFactory
Class Inheritance
Annotations
@SuppressWarnings:nls
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This LiteralExpressionFactory 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

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this LiteralExpressionFactory.

Constructor Summary

AccessConstructor and Description
public
LiteralExpressionFactory()

Creates a new LiteralExpressionFactory.

Method Summary

Modifier and TypeMethod and Description
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
,
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.AbstractLiteralExpressionFactory.buildExpression.

Creates the actual AbstractExpression this factory manages.
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractLiteralExpressionFactory:
buildExpressionisCollection

Field Detail

IDback to summary
public static final String ID

The unique identifier of this LiteralExpressionFactory.

Constructor Detail

LiteralExpressionFactoryback to summary
public LiteralExpressionFactory()

Creates a new LiteralExpressionFactory.

Method Detail

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

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

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

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

Annotations
@Override