StateObject represents a JPQL expression that has a JPQL identifier followed by
an encapsulated expression with parenthesis.
BNF: expression ::= <identifier>(expression)
AbstractSingleEncapsulatedExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | STATE_OBJECT_PROPERTY
Notifies the encapsulated |
| private StateObject | stateObject
The |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSingleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | AbstractSingleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe stateObject)StateObject representing the encapsulated expressionCreates a new |
| protected | AbstractSingleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe portion of the query representing the encapsulated expression jpqlFragment)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public AbstractSingleEncapsulatedExpression | getExpression()
Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| protected abstract String | Returns: The non-null ID of the BNFReturns the unique identifier of the |
| public StateObject | |
| public boolean | hasStateObject()
Determines whether the |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public void | parse(String
The portion of the query representing the encapsulated expression jpqlFragment)Parses the given JPQL fragment, which represents the encapsulated expression, and creates the
|
| protected void | setStateObject(StateObject
The new encapsulated stateObject)StateObjectSets the given |
| protected void | toTextEncapsulatedExpression(Appendable
The writer used to print out the string representation of the encapsulated
information writer)Implements abstract org. true string representation of a JPQL query but should be used for
debugging purposes.
|
| STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String STATE_OBJECT_PROPERTY Notifies the encapsulated | |
| stateObject | back to summary |
|---|---|
| private StateObject stateObject The | |
| AbstractSingleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| protected AbstractSingleEncapsulatedExpressionStateObject(StateObject parent) Creates a new
| |
| AbstractSingleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| protected AbstractSingleEncapsulatedExpressionStateObject(StateObject parent, StateObject stateObject) Creates a new
| |
| AbstractSingleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| protected AbstractSingleEncapsulatedExpressionStateObject(StateObject parent, String jpqlFragment) Creates a new
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| getExpression | back to summary |
|---|---|
| public AbstractSingleEncapsulatedExpression getExpression() Implements org. Doc from org. Returns the actual parsed object if this
| |
| getQueryBNFId | back to summary |
|---|---|
| protected abstract String getQueryBNFId() Returns the unique identifier of the
| |
| getStateObject | back to summary |
|---|---|
| public StateObject getStateObject() Returns the encapsulated
| |
| hasStateObject | back to summary |
|---|---|
| public boolean hasStateObject() Determines whether the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| parse | back to summary |
|---|---|
| public void parse(String jpqlFragment) Parses the given JPQL fragment, which represents the encapsulated expression, and creates the
| |
| setStateObject | back to summary |
|---|---|
| protected void setStateObject(StateObject stateObject) Sets the given
| |
| toTextEncapsulatedExpression | back to summary |
|---|---|
| protected void toTextEncapsulatedExpression(Appendable writer) throws IOException Implements abstract org. Prints out a string representation of this encapsulated information, which should not be used
to define a
| |