E
- component typeQ
- result type for get(int)
and any()
resultspublic class ListPath<E,Q extends SimpleExpression<? super E>> extends CollectionPathBase<List<E>,E,Q> implements ListExpression<E,Q>
ListPath
represents list pathshashCode, mixin
Modifier | Constructor and Description |
---|---|
protected |
ListPath(Class<? super E> elementType,
Class<Q> queryType,
Path<?> parent,
String property) |
protected |
ListPath(Class<? super E> elementType,
Class<Q> queryType,
PathMetadata metadata) |
protected |
ListPath(Class<? super E> elementType,
Class<Q> queryType,
PathMetadata metadata,
PathInits inits) |
protected |
ListPath(Class<? super E> elementType,
Class<Q> queryType,
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<Integer> index) |
protected PathMetadata |
forListAccess(int index) |
Q |
get(Expression<Integer> index)
Indexed access, gets the element at the given index
|
Q |
get(int index)
Indexed access, gets the element at the given index
|
AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
Class<E> |
getElementType()
Get the element type
|
PathMetadata |
getMetadata()
Get the metadata for this path
|
Class<?> |
getParameter(int index)
Get the type parameter at the given index
|
Path<?> |
getRoot()
Get the root for this path
|
newInstance
as, contains, contains, isEmpty, isNotEmpty, size
as, as, equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
protected ListPath(Class<? super E> elementType, Class<Q> queryType, Path<?> parent, String property)
protected ListPath(Class<? super E> elementType, Class<Q> queryType, PathMetadata metadata)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<List<E>>
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic Q any()
CollectionPathBase
any
in class CollectionPathBase<List<E>,E,Q extends SimpleExpression<? super E>>
protected PathMetadata forListAccess(int index)
protected PathMetadata forListAccess(Expression<Integer> index)
public Q get(Expression<Integer> index)
ListExpression
get
in interface ListExpression<E,Q extends SimpleExpression<? super E>>
index
- zero based indexList.get(int)
public Q get(int index)
ListExpression
get
in interface ListExpression<E,Q extends SimpleExpression<? super E>>
index
- zero based indexList.get(int)
public Class<E> getElementType()
CollectionExpressionBase
getElementType
in class CollectionExpressionBase<List<E>,E>
public PathMetadata getMetadata()
Path
getMetadata
in interface Path<List<E>>
public AnnotatedElement getAnnotatedElement()
Path
For 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<List<E>>
public Class<?> getParameter(int index)
ParameterizedExpression
getParameter
in interface ParameterizedExpression<List<E>>
index
- zero based index of type parameterCopyright © 2007–2016 Querydsl. All rights reserved.