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(java.lang.Class<? super A> type,
Path<?> parent,
java.lang.String property) |
protected |
ArrayPath(java.lang.Class<? super A> type,
PathMetadata metadata) |
protected |
ArrayPath(java.lang.Class<? super A> type,
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
|
SimplePath<E> |
get(Expression<java.lang.Integer> index)
Create a
this[index] expression |
SimplePath<E> |
get(@Range(from=0L,to=2147483647L) int index)
Create a
this[index] expression |
java.lang.reflect.AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
java.lang.Class<E> |
getElementType() |
PathMetadata |
getMetadata()
Get the metadata for this path
|
Path<?> |
getRoot()
Get the root for this path
|
NumberExpression<java.lang.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(java.lang.Class<? super A> type, java.lang.String variable)
protected ArrayPath(java.lang.Class<? super A> type, Path<?> parent, java.lang.String property)
protected ArrayPath(java.lang.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<java.lang.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(@Range(from=0L,to=2147483647L) int index)
ArrayExpression
this[index]
expression
Returns the element at the given index
get
in interface ArrayExpression<A,E>
index
- zero based indexpublic java.lang.Class<E> getElementType()
public PathMetadata getMetadata()
Path
getMetadata
in interface Path<A>
public java.lang.reflect.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<java.lang.Integer> size()
ArrayExpression
this.size()
expression
Returns the size of the array as an expression
size
in interface ArrayExpression<A,E>
Copyright © 2007–2021 Querydsl. All rights reserved.