Class StringLiteralFactory
- java.lang.Object
- 
- org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory
- 
- org.eclipse.persistence.jpa.jpql.parser.StringLiteralFactory
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<ExpressionFactory>
 
 public final class StringLiteralFactory extends ExpressionFactory ThisStringLiteralFactoryis responsible to parse a sub-query starting with a single quote.- Version:
- 2.4
- See Also:
- StringLiteral
- Author:
- Pascal Filion
- Since:
- 2.3
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringIDThe unique identifier of thisStringLiteralFactory.
 - 
Constructor SummaryConstructors Constructor Description StringLiteralFactory()Creates a newStringLiteralFactory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractExpressionbuildExpression(AbstractExpression parent, WordParser wordParser, java.lang.String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)Creates a newExpression.- 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.ExpressionFactorycompareTo, equals, getExpressionRegistry, getId, hashCode, identifiers, toString
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final java.lang.String ID The unique identifier of thisStringLiteralFactory.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
buildExpressionprotected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, java.lang.String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant) Creates a newExpression.- Specified by:
- buildExpressionin class- ExpressionFactory
- Parameters:
- parent- The parent- AbstractExpression
- wordParser- The text to parse based on the current position of the cursor
- word- The current word being parsed
- queryBNF- The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
- expression- 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
 
 
- 
 
-