A
- array typeE
- array element typepublic class ArrayPath<A,E> extends SimpleExpression<A> implements Path<A>, ArrayExpression<A,E>
ArrayPath
represents an array typed pathhashCode, mixin
Modifier | Constructor and Description |
---|---|
protected |
ArrayPath(Class<? super A> type,
Path<?> parent,
String property) |
protected |
ArrayPath(Class<? super A> type,
PathMetadata metadata) |
protected |
ArrayPath(Class<? super A> type,
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
|
SimplePath<E> |
get(Expression<Integer> index)
Create a
this[index] expression |
SimplePath<E> |
get(int index)
Create a
this[index] expression |
AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
Class<E> |
getElementType() |
PathMetadata |
getMetadata()
Get the metadata for this path
|
Path<?> |
getRoot()
Get the root for this path
|
NumberExpression<Integer> |
size()
Create a
this.size() expression |
as, as, count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
protected ArrayPath(Class<? super A> type, PathMetadata metadata)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<A>
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic SimplePath<E> get(Expression<Integer> index)
ArrayExpression
this[index]
expression
Returns the element at the given index
get
in interface ArrayExpression<A,E>
index
- zero based indexpublic SimplePath<E> get(@Nonnegative int index)
ArrayExpression
this[index]
expression
Returns the element at the given index
get
in interface ArrayExpression<A,E>
index
- zero based indexpublic PathMetadata getMetadata()
Path
getMetadata
in interface Path<A>
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<A>
public NumberExpression<Integer> size()
ArrayExpression
this.size()
expression
Returns the size of the array as an expression
size
in interface ArrayExpression<A,E>
Copyright © 2007–2016 Querydsl. All rights reserved.