StateObject.
| Modifier and Type | Field and Description |
|---|---|
| private ChangeSupport | changeSupport
The object responsible to actually register the listeners and to notify them upon changes made
to this |
| private StateObject | decorator
The |
| private Expression | expression
The parsed object when a JPQL query is parsed and converted into a |
| private StateObject | parent
The parent of this state object. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: true if the call was successfully executed; false otherwiseThe visitor)StateObjectVisitor to visit this StateObject programmaticallyThe given |
| protected void | acceptUnknownVisitor(StateObjectVisitor
The visitor, Class<?> StateObjectVisitor to visit this StateObject programmaticallyThe type found in the hierarchy of the given type, Class<?> StateObjectVisitor that will
be used to retrieve the visit methodThe parameter type of the visit method parameterType)The given |
| protected void | addChildren(List<StateObject>
The list used to store the children children)Adds the children of this |
| protected void | addProblems(List<Problem>
The list to which the problems are added problems)Adds to the given list the problems that were found with the current state of this |
| public final void | addPropertyChangeListener(String
The name of the property for which the listener was registered propertyName, IPropertyChangeListener<?> The listener to be notified upon changes listener)Implements org. IPropertyChangeListener for the specified property.
|
| protected final boolean | Returns: true if both objects are equivalent; false otherwiseThe first stateObject1, StateObject StateObject to compare its content with the other oneThe second stateObject2)StateObject to compare its content with the other oneDetermines whether the given two |
| protected final Problem | Returns: The newProblemThe key used to retrieve the localized message describing the problem found
with the current state of this messageKey)StateObjectCreates a new |
| protected final Problem | Returns: The newProblemThe key used to retrieve the localized message describing the problem found
with the current state of this messageKey, String... StateObjectA list of arguments that can be used to complete the message or an empty list
if no additional information is necessary arguments)Creates a new |
| protected <T extends StateObject> T | Returns: AStateObject representation of the given JPQL fragmentA portion of a JPQL query that will be parsed and converted into a jpqlFragment, String StateObjectThe unique identifier of the BNF that determines how to parse the fragment queryBNFId)Parses the given JPQL fragment using the given JPQL query BNF. |
| protected <T extends StateObject> List | Returns: A list ofStateObjects representing the given JPQL fragment, which
means the list may contain a single StateObject or a multiple StateObjects if the fragment contains more than one expression of the same type. Example:
"JOIN e.employees e LEFT JOIN e.address a", this would be parsed in two state objectsA portion of a JPQL query that will be parsed and converted into either a
single jpqlFragment, String StateObject or a list of StateObject, which happens when the fragment
contains a collection of items separated by either a comma or a spaceThe unique identifier of the BNF that will be used to parse the fragment queryBNFId)Parses the given JPQL fragment using the given JPQL query BNF. |
| protected StateObject | Returns: The given objectThe parent of this state object parent)Checks whether the given parent is |
| public final Iterable | children()
Implements org. StateObject.
|
| public void | decorate(StateObject
The decorator)StateObject decorating this oneImplements org. StateObject with the given decorator.
|
| public final boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public IdentificationVariableStateObject | findIdentificationVariable(String
The name of the identification variable to retrieve its state object identificationVariable)Implements org. IdentificationVariableStateObject representing the given identification
variable.
|
| protected final void | firePropertyChanged(String
The name of the property associated with the property change propertyName, Object The old value of the property that changed oldValue, Object The new value of the property that changed newValue)Notifies the |
| protected final ChangeSupport | Returns: The manager of listeners and notificationReturns the object responsible to actually register the listeners and to notify them upon
changes made to this |
| public DeclarationStateObject | getDeclaration()
Implements org. |
| public StateObject | getDecorator()
Implements org. StateObject decorating this one if one has been set, which means the
behavior of this StateObject is modified by the decorator.
|
| public Expression | getExpression()
Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public JPQLGrammar | getGrammar()
Implements org. |
| public IManagedTypeProvider | getManagedTypeProvider()
Implements org. |
| public StateObject | getParent()
Implements org. StateObject.
|
| public IJPQLQueryBuilder | getQueryBuilder()
Implements org. IJPQLQueryBuilder that is responsible to create various part of the StateObject hierarchy.
|
| public JPQLQueryStateObject | getRoot()
Implements org. StateObject hierarchy.
|
| public IType | |
| public IType | |
| public TypeHelper | Returns: A helper containing a collection of methods related toITypeReturns a helper that gives access to the most common |
| public ITypeRepository | Returns: The repository ofITypesReturns the type repository for the application. |
| public final int | |
| protected void | |
| public boolean | isDecorated()
Implements org. StateObject is being decorated by another StateObject,
which means the behavior is modified by the given one.
|
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneImplements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| protected <T extends StateObject> List | Returns: The given list ofStateObjectThe list of stateObjects)StateObject to have this one as its parentMakes sure the given list of |
| protected final <T extends StateObject> T[] | Returns: The given list ofStateObjectThe list of stateObjects)StateObject to have this one as its parentMakes sure the given list of |
| protected <T extends StateObject> T | Returns: The givenStateObjectThe stateObject)StateObject to have this one as its parentMakes sure the given |
| public final void | removePropertyChangeListener(String
The name of the property for which the listener was registered propertyName, IPropertyChangeListener<?> The listener to unregister listener)Implements org. IPropertyChangeListener that was registered for the specified
property.
|
| public void | setExpression(Expression
The parsed object when a JPQL query is parsed expression)Sets the actual parsed object if this |
| public final void | setParent(StateObject
The new parent parent)StateObject of this one, which cannot be nullImplements org. StateObject to become the parent of this one.
|
| public final String | |
| public final void | toString(Appendable
The writer used to print out the string representation writer)Implements org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| protected final void | toStringInternal(Appendable
The writer used to print out the string representation writer)Prints out a string representation of this |
| protected void | |
| public final void | toText(Appendable
The writer used to print out the string representation writer)Implements org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| protected abstract void | toTextInternal(Appendable
The writer used to print out the string representation writer)Prints out a string representation of this |