A
- array typeE
- component typepublic class ArrayPath<A,E> extends SimpleExpression<A> implements Path<A>, ArrayExpression<A,E>
mixin
Constructor and Description |
---|
ArrayPath(Class<? super A> type,
Path<?> parent,
String property) |
ArrayPath(Class<? super A> type,
PathMetadata<?> metadata) |
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 expression for indexed access
|
SimplePath<E> |
get(int index)
Create a expression for indexed access
|
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 an expression for the array size
|
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public 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)
get
in interface ArrayExpression<A,E>
index
- public SimplePath<E> get(@Nonnegative int index)
get
in interface ArrayExpression<A,E>
index
- public 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()
size
in interface ArrayExpression<A,E>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.