public abstract class AbstractSingleEncapsulatedExpressionStateObject extends AbstractEncapsulatedExpressionStateObject
StateObject
represents a JPQL expression that has a JPQL identifier followed by
an encapsulated expression with parenthesis.
expression ::= <identifier>(expression)
AbstractSingleEncapsulatedExpression
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATE_OBJECT_PROPERTY
Notifies the encapsulated
StateObject has changed. |
Modifier and Type | Method and Description |
---|---|
AbstractSingleEncapsulatedExpression |
getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
StateObject |
getStateObject()
Returns the encapsulated
StateObject . |
boolean |
hasStateObject()
Determines whether the
StateObject representing the encapsulated expression is present
or not. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
parse(java.lang.String jpqlFragment)
Parses the given JPQL fragment, which represents the encapsulated expression, and creates the
StateObject . |
getIdentifier
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toText
accept
public static final java.lang.String STATE_OBJECT_PROPERTY
StateObject
has changed.public AbstractSingleEncapsulatedExpression getExpression()
StateObject
representation of the JPQL query
was created by parsing an existing JPQL query.getExpression
in interface StateObject
getExpression
in class AbstractEncapsulatedExpressionStateObject
StateObject
or null
when the JPQL query is manually created (i.e. not from a string)public StateObject getStateObject()
StateObject
.StateObject
public boolean hasStateObject()
StateObject
representing the encapsulated expression is present
or not.true
if the encapsulated StateObject
is not null
;
false
otherwisepublic boolean isEquivalent(StateObject stateObject)
StateObject
is equivalent to this one, i.e. the
information of both StateObject
is the same.isEquivalent
in interface StateObject
isEquivalent
in class AbstractStateObject
stateObject
- The StateObject
to compare its content to this onetrue
if both object are equivalent; false
otherwisepublic void parse(java.lang.String jpqlFragment)
StateObject
.jpqlFragment
- The portion of the query representing the encapsulated expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference