StateObject has a left and right expressions combined by an identifier.
BNF: expression ::= left_expression <identifier> right_expression
CompoundExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LEFT_STATE_OBJECT_PROPERTY
Notifies the left state object property has changed. |
| private StateObject | leftStateObject
The |
| public static final String | RIGHT_STATE_OBJECT_PROPERTY
Notifies the right state object property has changed. |
| private StateObject | rightStateObject
The |
| Access | Constructor and Description |
|---|---|
| protected | CompoundExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | CompoundExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe leftStateObject, StateObject StateObject representing the left expressionThe rightStateObject)StateObject representing the right expressionCreates a new |
| protected | CompoundExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe string representation of the left expression to parse and to
convert into a leftJpqlFragment, String StateObjectThe string representation of the right expression to parse and to
convert into a rightJpqlFragment)StateObjectCreates 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 CompoundExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public abstract String | Returns: The JPQL identifier join two expressionsReturns the identifier joining the two |
| public StateObject | Returns: TheStateObject representing the left expressionReturns the |
| protected abstract String | Returns: The query BNF ID for the left side of the expressionReturns the unique identifier of the BNF that will be used to parse a JPQL fragment as the left side of the expression. |
| public StateObject | Returns: TheStateObject representing the right expressionReturns the |
| protected abstract String | Returns: The query BNF ID for the right side of the expressionReturns the unique identifier of the BNF that will be used to parse a JPQL fragment as the right side of the expression. |
| public boolean | |
| public boolean | |
| 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 | |
| public void | parseRight(String
The portion of the query to become the right side of the compound expression jpqlFragment)Parses the given JPQL fragment and update the right side of the compound expression. |
| public void | setLeft(StateObject
The leftStateObject)StateObject representing the left expressionSets the left |
| public void | setRight(StateObject
The rightStateObject)StateObject representing the right expressionSets the right |
| 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.
|
| LEFT_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String LEFT_STATE_OBJECT_PROPERTY Notifies the left state object property has changed. | |
| leftStateObject | back to summary |
|---|---|
| private StateObject leftStateObject The | |
| RIGHT_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String RIGHT_STATE_OBJECT_PROPERTY Notifies the right state object property has changed. | |
| rightStateObject | back to summary |
|---|---|
| private StateObject rightStateObject The | |
| CompoundExpressionStateObject | back to summary |
|---|---|
| protected CompoundExpressionStateObject(StateObject parent) Creates a new
| |
| CompoundExpressionStateObject | back to summary |
|---|---|
| protected CompoundExpressionStateObject(StateObject parent, StateObject leftStateObject, StateObject rightStateObject) Creates a new
| |
| CompoundExpressionStateObject | back to summary |
|---|---|
| protected CompoundExpressionStateObject(StateObject parent, String leftJpqlFragment, String rightJpqlFragment) 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 CompoundExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentifier | back to summary |
|---|---|
| public abstract String getIdentifier() Returns the identifier joining the two
| |
| getLeft | back to summary |
|---|---|
| public StateObject getLeft() Returns the
| |
| getLeftQueryBNFId | back to summary |
|---|---|
| protected abstract String getLeftQueryBNFId() Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the left side of the expression.
| |
| getRight | back to summary |
|---|---|
| public StateObject getRight() Returns the
| |
| getRightQueryBNFId | back to summary |
|---|---|
| protected abstract String getRightQueryBNFId() Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the right side of the expression.
| |
| hasLeft | back to summary |
|---|---|
| public boolean hasLeft() Determines whether there is a
| |
| hasRight | back to summary |
|---|---|
| public boolean hasRight() Determines whether there is a
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| parseLeft | back to summary |
|---|---|
| public void parseLeft(String jpqlFragment) Parses the given JPQL fragment and update the left side of the compound expression.
| |
| parseRight | back to summary |
|---|---|
| public void parseRight(String jpqlFragment) Parses the given JPQL fragment and update the right side of the compound expression.
| |
| setLeft | back to summary |
|---|---|
| public void setLeft(StateObject leftStateObject) Sets the left
| |
| setRight | back to summary |
|---|---|
| public void setRight(StateObject rightStateObject) Sets the right
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |