E - component typeQ - result type for get(int) and any() resultspublic class ListPath<E,Q extends SimpleExpression<? super E>> extends CollectionPathBase<java.util.List<E>,E,Q> implements ListExpression<E,Q>
ListPath represents list pathshashCode, mixin| Modifier | Constructor and Description |
|---|---|
protected |
ListPath(java.lang.Class<? super E> elementType,
java.lang.Class<Q> queryType,
Path<?> parent,
java.lang.String property) |
protected |
ListPath(java.lang.Class<? super E> elementType,
java.lang.Class<Q> queryType,
PathMetadata metadata) |
protected |
ListPath(java.lang.Class<? super E> elementType,
java.lang.Class<Q> queryType,
PathMetadata metadata,
PathInits inits) |
protected |
ListPath(java.lang.Class<? super E> elementType,
java.lang.Class<Q> queryType,
java.lang.String variable) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
Q |
any()
Create a path that matches any element in this collection
|
protected PathMetadata |
forListAccess(Expression<java.lang.Integer> index) |
protected PathMetadata |
forListAccess(int index) |
Q |
get(Expression<java.lang.Integer> index)
Indexed access, gets the element at the given index
|
Q |
get(int index)
Indexed access, gets the element at the given index
|
java.lang.reflect.AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
java.lang.Class<E> |
getElementType()
Get the element type
|
PathMetadata |
getMetadata()
Get the metadata for this path
|
java.lang.Class<?> |
getParameter(int index)
Get the type parameter at the given index
|
Path<?> |
getRoot()
Get the root for this path
|
newInstanceas, contains, contains, isEmpty, isNotEmpty, sizeas, as, equals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeprotected ListPath(java.lang.Class<? super E> elementType, java.lang.Class<Q> queryType, java.lang.String variable)
protected ListPath(java.lang.Class<? super E> elementType, java.lang.Class<Q> queryType, Path<?> parent, java.lang.String property)
protected ListPath(java.lang.Class<? super E> elementType, java.lang.Class<Q> queryType, PathMetadata metadata)
protected ListPath(java.lang.Class<? super E> elementType, java.lang.Class<Q> queryType, PathMetadata metadata, PathInits inits)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expressionaccept in interface Expression<java.util.List<E>>R - return typeC - context typev - visitorcontext - context of visitpublic Q any()
CollectionPathBaseany in class CollectionPathBase<java.util.List<E>,E,Q extends SimpleExpression<? super E>>protected PathMetadata forListAccess(int index)
protected PathMetadata forListAccess(Expression<java.lang.Integer> index)
public Q get(Expression<java.lang.Integer> index)
ListExpressionget in interface ListExpression<E,Q extends SimpleExpression<? super E>>index - zero based indexList.get(int)public Q get(int index)
ListExpressionget in interface ListExpression<E,Q extends SimpleExpression<? super E>>index - zero based indexList.get(int)public java.lang.Class<E> getElementType()
CollectionExpressionBasegetElementType in class CollectionExpressionBase<java.util.List<E>,E>public PathMetadata getMetadata()
PathgetMetadata in interface Path<java.util.List<E>>public java.lang.reflect.AnnotatedElement getAnnotatedElement()
PathFor property paths the annotated element contains the annotations of the related field and/or getter method and for all others paths the annotated element is the expression type.
getAnnotatedElement in interface Path<java.util.List<E>>public java.lang.Class<?> getParameter(int index)
ParameterizedExpressiongetParameter in interface ParameterizedExpression<java.util.List<E>>index - zero based index of type parameterCopyright © 2007–2021 Querydsl. All rights reserved.