Class LiteralExpressionFactory
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractLiteralExpressionFactory
-
- org.eclipse.persistence.jpa.jpql.parser.LiteralExpressionFactory
-
- All Implemented Interfaces:
java.lang.Comparable<ExpressionFactory>
public final class LiteralExpressionFactory extends AbstractLiteralExpressionFactory
ThisLiteralExpressionFactoryis responsible to return the right literal expression.- Version:
- 2.5
- See Also:
StringLiteral,InputParameter,NumericLiteral,KeywordExpression,StateFieldPathExpression,IdentificationVariable- Author:
- Pascal Filion
- Since:
- 2.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDThe unique identifier of thisLiteralExpressionFactory.
-
Constructor Summary
Constructors Constructor Description LiteralExpressionFactory()Creates a newLiteralExpressionFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractExpressionbuildExpression(AbstractExpression parent, WordParser wordParser, java.lang.String word, AbstractExpression expression, boolean tolerant)Creates the actualAbstractExpressionthis factory manages.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractLiteralExpressionFactory
buildExpression, isCollection
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory
compareTo, equals, getExpressionRegistry, getId, hashCode, identifiers, toString
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
The unique identifier of thisLiteralExpressionFactory.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildExpression
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, java.lang.String word, AbstractExpression expression, boolean tolerant)
Creates the actualAbstractExpressionthis factory manages.- Specified by:
buildExpressionin classAbstractLiteralExpressionFactory- Parameters:
parent- The parentAbstractExpressionwordParser- The text to parse based on the current position of the cursorword- The current word being parsedexpression- 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:
- A new
AbstractExpressionrepresenting the portion or the totality of the text held byWordParserstarting at the cursor position
-
-