K
- key typeV
- value typepublic class MapPath<K,V,E extends SimpleExpression<? super V>> extends MapExpressionBase<K,V,E> implements Path<Map<K,V>>
mixin
Constructor and Description |
---|
MapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> queryType,
Path<?> parent,
String property) |
MapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> queryType,
PathMetadata<?> metadata) |
MapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> 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
|
protected PathMetadata<K> |
forMapAccess(Expression<K> key) |
protected PathMetadata<K> |
forMapAccess(K key) |
E |
get(Expression<K> key) |
E |
get(K key) |
AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
Class<K> |
getKeyType() |
PathMetadata<?> |
getMetadata()
Get the metadata for this path
|
Class<?> |
getParameter(int index) |
Path<?> |
getRoot()
Get the root for this path
|
Class<V> |
getValueType() |
contains, contains, containsKey, containsKey, containsValue, containsValue, isEmpty, isNotEmpty, size
as, as, equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public MapPath(Class<? super K> keyType, Class<? super V> valueType, Class<E> queryType, String variable)
public MapPath(Class<? super K> keyType, Class<? super V> valueType, Class<E> queryType, Path<?> parent, String property)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<Map<K,V>>
R
- return typeC
- context typev
- visitorcontext
- context of visitprotected PathMetadata<K> forMapAccess(K key)
protected PathMetadata<K> forMapAccess(Expression<K> key)
public E get(Expression<K> key)
get
in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>
public E get(K key)
get
in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>
public PathMetadata<?> getMetadata()
Path
getMetadata
in interface Path<Map<K,V>>
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<Map<K,V>>
public Class<?> getParameter(int index)
getParameter
in interface ParametrizedExpression<Map<K,V>>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.