AbstractPathExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | IDENTIFICATION_VARIABLE_PROPERTY
Notifies the identification variable property has changed. |
| private StateObject | identificationVariable
The |
| private IManagedType | |
| private ArrayList | |
| private List | paths
The list of segments, including the general identification variable. |
| public static final String | PATHS_LIST
Notifies the content of the paths list has changed. |
| private boolean | |
| private IType | |
| private ITypeDeclaration | typeDeclaration
The |
| Access | Constructor and Description |
|---|---|
| protected | AbstractPathExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | AbstractPathExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe path expression path)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 <S extends String> S | addItem(S
The child item)StateObject to become a child of this one
return The given itemImplements org. StateObject as a child of this one.
|
| public void | addItems(List<? extends String>
The items)StateObjects to become children of this oneImplements org. StateObjects as children of this one.
|
| public void | addListChangeListener(String
The name of the list for which the listener will be notified when the content
of the list has changed listName, IListChangeListener<String> The listener to be notified upon changes listener)Implements org. IListChangeListener for the specified list.
|
| public void | |
| public boolean | canMoveDown(String
The item)StateObject that could potentially be moved downImplements org. StateObject can be moved down by one position in the
list owned by its parent.
|
| public boolean | canMoveUp(String
The item)StateObject that could potentially be moved upImplements org. StateObject can be moved up by one position in the list
owned by its parent.
|
| protected void | |
| public AbstractPathExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public StateObject | Returns: The root of the path expressionReturns the |
| public String | getItem(int
The position of the index)StateObject to retrieveImplements org. StateObject at the given positions from the list
|
| public IManagedType | |
| public IMapping | |
| public IMapping | getMapping(int
The index of the path for which its index)IMapping should be retrieved, which
should start at 1 to skip the identification variableRetrieves the |
| public String | Returns: The path expression, which is nevernullReturns the string representation of the path expression. |
| public IType | Returns: Either theIType that was resolved by this state object or the IType
for IType#UNRESOLVABLE_TYPE if it could not be resolvedReturns the |
| public ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this object or the ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedReturns the |
| public boolean | Returns: true the identification variable is present; false otherwiseDetermines whether the identification variable is present. |
| public boolean | hasItems()
Implements org. StateObject has any children.
|
| protected void | initialize()
Overrides org. |
| 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 ListIterable | items()
Implements org. ListIterable over the children.
|
| public int | itemsSize()
Implements org. |
| public String | moveDown(String
The item)StateObject to move down in the listImplements org. StateObject down by one position in the list owned by its parent.
|
| public String | moveUp(String
The item)StateObject to move up in the listImplements org. StateObject up by one position in the list owned by its parent.
|
| public void | removeItem(int
The position of the single path to remove. If the index is 0, then the
identification variable is nullified index)Implements org. |
| public void | removeItem(String
The child item)StateObject to not longer be a childImplements org. StateObject from the list of children.
|
| public void | removeItems(Collection<String>
The items)StateObjects to remove from this oneImplements org. StateObject from the list of children.
|
| public void | removeListChangeListener(String
The name of the list for which the listener was registered listName, IListChangeListener<String> The listener to unregister listener)Implements org. IListChangeListener that was registered for the specified list.
|
| protected abstract IManagedType | |
| protected void | |
| protected abstract IType | Returns: Either theIType that was resolved by this object or the IType for
IType#UNRESOLVABLE_TYPE if it could not be resolvedResolves the |
| protected ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this object or the ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedResolves the |
| public void | setIdentificationVariable(StateObject
The root of the path expression identificationVariable)Sets the |
| protected void | setIdentificationVariableInternally(StateObject
The root of the path expression identificationVariable)Sets the |
| public void | setPath(CharSequence
The new path expression path)Changes the path expression with the list of segments, the identification variable will also be updated with the first segment. |
| public void | |
| public void | |
| public void | setPaths(ListIterator<String>
The new path expression paths)Changes the path expression with the list of segments, the identification variable will also be updated with the first segment. |
| public void | |
| 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.
|
| IDENTIFICATION_VARIABLE_PROPERTY | back to summary |
|---|---|
| public static final String IDENTIFICATION_VARIABLE_PROPERTY Notifies the identification variable property has changed. | |
| identificationVariable | back to summary |
|---|---|
| private StateObject identificationVariable The | |
| managedType | back to summary |
|---|---|
| private IManagedType managedType | |
| mappings | back to summary |
|---|---|
| private ArrayList<IMapping> mappings | |
| paths | back to summary |
|---|---|
| private List<String> paths The list of segments, including the general identification variable. | |
| PATHS_LIST | back to summary |
|---|---|
| public static final String PATHS_LIST Notifies the content of the paths list has changed. | |
| resolved | back to summary |
|---|---|
| private boolean resolved | |
| type | back to summary |
|---|---|
| private IType type The | |
| typeDeclaration | back to summary |
|---|---|
| private ITypeDeclaration typeDeclaration The | |
| AbstractPathExpressionStateObject | back to summary |
|---|---|
| protected AbstractPathExpressionStateObject(StateObject parent) Creates a new
| |
| AbstractPathExpressionStateObject | back to summary |
|---|---|
| protected AbstractPathExpressionStateObject(StateObject parent, String path) Creates a new
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| addItem | back to summary |
|---|---|
| public <S extends String> S addItem(S item) Implements org. Doc from org. Adds the given
| |
| addItems | back to summary |
|---|---|
| public void addItems(List<? extends String> items) Implements org. Doc from org. Adds the given list of
| |
| addListChangeListener | back to summary |
|---|---|
| public void addListChangeListener(String listName, IListChangeListener<String> listener) Implements org. Doc from org. Registers the given
| |
| append | back to summary |
|---|---|
| public void append(String text) Appends the given sequence of characters to the path expression. If the sequence does not begin with a dot, then the first segment will be appended to the last segment and then new segments will be created.
| |
| canMoveDown | back to summary |
|---|---|
| public boolean canMoveDown(String item) Implements org. Doc from org. Determines whether the given
| |
| canMoveUp | back to summary |
|---|---|
| public boolean canMoveUp(String item) Implements org. Doc from org. Determines whether the given
| |
| clearResolvedObjects | back to summary |
|---|---|
| protected void clearResolvedObjects() Clears the values related to the managed type and type. | |
| getExpression | back to summary |
|---|---|
| public AbstractPathExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentificationVariable | back to summary |
|---|---|
| public StateObject getIdentificationVariable() Returns the
| |
| getItem | back to summary |
|---|---|
| public String getItem(int index) Implements org. Doc from org. Returns the
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType() Returns | |
| getMapping | back to summary |
|---|---|
| public IMapping getMapping() Returns | |
| getMapping | back to summary |
|---|---|
| public IMapping getMapping(int index) Retrieves the
| |
| getPath | back to summary |
|---|---|
| public String getPath() Returns the string representation of the path expression. If the identification variable is virtual, then it is not part of the result.
| |
| getType | back to summary |
|---|---|
| public IType getType() Returns the
| |
| getTypeDeclaration | back to summary |
|---|---|
| public ITypeDeclaration getTypeDeclaration() Returns the
| |
| hasIdentificationVariable | back to summary |
|---|---|
| public boolean hasIdentificationVariable() Determines whether the identification variable is present.
| |
| hasItems | back to summary |
|---|---|
| public boolean hasItems() Implements org. Doc from org. Determines whether this
| |
| initialize | back to summary |
|---|---|
| protected void initialize() Overrides org. Doc from org. Initializes this state object.
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| items | back to summary |
|---|---|
| public ListIterable Implements org. Doc from org. Returns an
| |
| itemsSize | back to summary |
|---|---|
| public int itemsSize() Implements org. Doc from org. Returns the number of children this list holder has.
| |
| moveDown | back to summary |
|---|---|
| public String moveDown(String item) Implements org. Doc from org. Moves the given
| |
| moveUp | back to summary |
|---|---|
| public String moveUp(String item) Implements org. Doc from org. Moves the given
| |
| removeItem | back to summary |
|---|---|
| public void removeItem(int index) Implements org. Removes the single path at the given index.
| |
| removeItem | back to summary |
|---|---|
| public void removeItem(String item) Implements org. Doc from org. Removes the given
| |
| removeItems | back to summary |
|---|---|
| public void removeItems(Collection<String> items) Implements org. Doc from org. Removes the given
| |
| removeListChangeListener | back to summary |
|---|---|
| public void removeListChangeListener(String listName, IListChangeListener<String> listener) Implements org. Doc from org. Unregisters the given
| |
| resolveManagedType | back to summary |
|---|---|
| protected abstract IManagedType resolveManagedType() Resolves | |
| resolveMappings | back to summary |
|---|---|
| protected void resolveMappings() Resolves the | |
| resolveType | back to summary |
|---|---|
| protected abstract IType resolveType() Resolves the
| |
| resolveTypeDeclaration | back to summary |
|---|---|
| protected ITypeDeclaration resolveTypeDeclaration() Resolves the
| |
| setIdentificationVariable | back to summary |
|---|---|
| public void setIdentificationVariable(StateObject identificationVariable) Sets the
| |
| setIdentificationVariableInternally | back to summary |
|---|---|
| protected void setIdentificationVariableInternally(StateObject identificationVariable) Sets the
| |
| setPath | back to summary |
|---|---|
| public void setPath(CharSequence path) Changes the path expression with the list of segments, the identification variable will also be updated with the first segment.
| |
| setPath | back to summary |
|---|---|
| public void setPath(int index, String path) Replaces the existing path segment to become the given one.
| |
| setPaths | back to summary |
|---|---|
| public void setPaths(List<String> paths) Changes the path expression with the list of segments, the identification variable will also be updated with the first segment. | |
| setPaths | back to summary |
|---|---|
| public void setPaths(ListIterator<String> paths) Changes the path expression with the list of segments, the identification variable will also be updated with the first segment.
| |
| setPaths | back to summary |
|---|---|
| public void setPaths(String... paths) Changes the path expression with the list of segments, the identification variable will also be updated with the first segment.
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |