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(java.lang.String expressionFactoryId)
Registers a unique identifier that will be used to create the
Expression representing
this BNF rule. |
void |
registerQueryBNF(java.lang.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, toString
public VirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar)
VirtualJPQLQueryBNF
.jpqlGrammar
- The JPQLGrammar
to integrate this virtual query BNFjava.lang.NullPointerException
- If the given JPQLGrammar
is null
public void dispose()
public void registerFactory(java.lang.String expressionFactoryId)
Expression
representing
this BNF rule.expressionFactoryId
- The unique identifier that is responsible to create the
Expression
for this BNF rulepublic void registerQueryBNF(java.lang.String queryBNFId)
queryBNFId
- The unique identifier of the BNF rulejava.lang.NullPointerException
- The queryBNFId
cannot be null