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

public final Class CastExpressionFactory

extends ExpressionFactory
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This CastExpressionFactory creates a new CastExpression when the portion of the query to parse starts with CAST.
Author
James Sutherland
Since
2.4
Version
2.4
See Also
CastExpression

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this CastExpressionFactory.

Constructor Summary

AccessConstructor and Description
public
CastExpressionFactory()

Creates a new TrimExpressionFactory.

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
,
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.
Inherited from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory:
addIdentifieraddIdentifierscompareToequalsgetExpressionRegistrygetIdhashCodeidentifierssetExpressionRegistrytoString

Field Detail

IDback to summary
public static final String ID

The unique identifier of this CastExpressionFactory.

Constructor Detail

CastExpressionFactoryback to summary
public CastExpressionFactory()

Creates a new TrimExpressionFactory.

Method Detail

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