public abstract class JPQLQueryBNF
extends java.lang.Object
Expression for the complete grammar
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.jpa.internal.jpql.parser.ExpressionFactory |
expressionFactory(java.lang.String identifier)
Retrieves the
ExpressionFactory that is associated with the given identifier, if the
given string is indeed a JPQL identifier. |
java.util.Set<java.lang.String> |
expressionFactoryIds()
Returns the unique identifiers of the
expression
factories handled by this BNF rule. |
java.lang.String |
getId()
Returns the unique identifier of this
JPQLQueryBNF . |
boolean |
handleAggregate()
Determines whether the
Expression handles a collection of sub-expressions that
are aggregated by logical or arithmetic operators. |
boolean |
handleCollection()
Determines whether the
Expression handles a collection of sub-expressions that
are separated by commas. |
boolean |
hasIdentifier(java.lang.String word)
Determines if this query BNF support the given word, which can be an identifier.
|
java.lang.Iterable<java.lang.String> |
identifiers()
Retrieves the identifiers that are supported by this BNF.
|
boolean |
isCompound()
Determines whether this BNF has child BNFs registered only to properly parse a query or if the
child BNFs are part of the BNF.
|
java.util.Set<JPQLQueryBNF> |
nonCompoundChildren()
Returns the set of all the query BNFs that are part of this BNF.
|
java.lang.String |
toString() |
public final org.eclipse.persistence.jpa.internal.jpql.parser.ExpressionFactory expressionFactory(java.lang.String identifier)
ExpressionFactory
that is associated with the given identifier, if the
given string is indeed a JPQL identifier.identifier
- The JPQL identifier (in theory) that is used to retrieve the factory
responsible to parse a portion of the query starting with that identifierExpressionFactory
responsible to parse a portion of the query starting
with the given identifier; null
if nothing was registered for itpublic final java.util.Set<java.lang.String> expressionFactoryIds()
expression
factories
handled by this BNF rule.ExpressionFactory
public final java.lang.String getId()
JPQLQueryBNF
.JPQLQueryBNF
with AbstractExpression
public boolean handleAggregate()
Expression
handles a collection of sub-expressions that
are aggregated by logical or arithmetic operators.true
if the sub-expression to parse might have several logical and/or
arithmetic expressions; false
otherwisepublic boolean handleCollection()
Expression
handles a collection of sub-expressions that
are separated by commas.true
if the sub-expression to parse might have several sub-expressions
separated by commas; false
otherwisepublic final boolean hasIdentifier(java.lang.String word)
word
- A word that could be a JPQL identifier or anything elsetrue
if the given word is a JPQL identifier and it is supported by this
BNF; false
otherwisepublic final java.lang.Iterable<java.lang.String> identifiers()
public boolean isCompound()
BetweenExpressionBNF
,
it registers a series of children BNFs but they shouldn't be used to determine if they are
part of that BNF since the comparator identifiers are.false
by defaultpublic final java.util.Set<JPQLQueryBNF> nonCompoundChildren()
public java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.3.2, "build v20111125-r10461" API Reference