public final class VirtualJPQLQueryBNF extends JPQLQueryBNF
JPQLQueryBNF can be used as a virtual BNF, which can wrap another BNF or BNFs and
modify the default behavior.
The unique identifier for this BNF is automatically generated and can be retrieved with
JPQLQueryBNF.getId().
Once this BNF is no longer needed, dispose() needs to be called.
| Constructor and Description |
|---|
VirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar)
Creates a new
VirtualJPQLQueryBNF. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes this "virtual" query BNF.
|
void |
registerFactory(String expressionFactoryId)
Registers a unique identifier that will be used to create the
Expression representing
this BNF rule. |
void |
registerQueryBNF(String queryBNFId)
Registers the unique identifier of the BNF rule as a child of this BNF rule.
|
children, getExpressionFactory, getExpressionFactoryIds, getExpressionRegistry, getFallbackBNFId, getFallbackExpressionFactoryId, getId, getIdentifiers, handleAggregate, handleCollection, handlesNestedArray, handleSubExpression, hasChild, hasIdentifier, initialize, isCompound, nonCompoundChildren, registerChild, registerExpressionFactory, setCompound, setFallbackBNFId, setFallbackExpressionFactoryId, setHandleAggregate, setHandleCollection, setHandleNestedArray, setHandleSubExpression, toString, toStringpublic VirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar)
VirtualJPQLQueryBNF.jpqlGrammar - The JPQLGrammar to integrate this virtual query BNFNullPointerException - If the given JPQLGrammar is nullpublic void dispose()
public void registerFactory(String expressionFactoryId)
Expression representing
this BNF rule.expressionFactoryId - The unique identifier that is responsible to create the
Expression for this BNF rulepublic void registerQueryBNF(String queryBNFId)
queryBNFId - The unique identifier of the BNF ruleNullPointerException - The queryBNFId cannot be nullCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.