StateObject is a temporary object used to store a list of StateObjects. Those objects are not parented. StateObjectVisitor is not aware of this
object either, to visit it, the visitor will be notified via reflection, see AbstractStateObject#acceptUnknownVisitor(StateObjectVisitor).
CollectionExpression
| Modifier and Type | Field and Description |
|---|---|
| private List | items
The list of children owned by this state object. |
| Access | Constructor and Description |
|---|---|
| public | CollectionExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, List<? extends StateObject> nullThe list of children owned by this state object items)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| protected boolean | Returns: true if both have equivalent children; false otherwiseThe stateObject)StateObject to compare its children to this one's childrenDetermines whether the children of this |
| public CollectionExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| 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 | setExpression(CollectionExpression
The expression)parsed object representing a collection
expressionKeeps a reference of the |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| items | back to summary |
|---|---|
| private List<? extends StateObject> items The list of children owned by this state object. | |
| CollectionExpressionStateObject | back to summary |
|---|---|
| public CollectionExpressionStateObject(StateObject parent, List<? extends StateObject> items) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| areChildrenEquivalent | back to summary |
|---|---|
| protected boolean areChildrenEquivalent(CollectionExpressionStateObject stateObject) Determines whether the children of this
| |
| getExpression | back to summary |
|---|---|
| public CollectionExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(CollectionExpression expression) Keeps a reference of the
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |