K - key typeV - value typeE - result type for get(K) resultspublic class MapPath<K,V,E extends SimpleExpression<? super V>> extends MapExpressionBase<K,V,E> implements Path<Map<K,V>>
MapPath represents map pathshashCode, mixin| Modifier | Constructor and Description |
|---|---|
protected |
MapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> queryType,
Path<?> parent,
String property) |
protected |
MapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> queryType,
PathMetadata metadata) |
protected |
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 |
forMapAccess(Expression<K> key) |
protected PathMetadata |
forMapAccess(K key) |
E |
get(Expression<K> key)
Create a
this.get(key) expression |
E |
get(K key)
Create a
this.get(key) expression |
AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
Class<K> |
getKeyType()
Get the key 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
|
Class<V> |
getValueType()
Get the value type
|
contains, contains, containsKey, containsKey, containsValue, containsValue, isEmpty, isNotEmpty, sizeas, as, equals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeprotected MapPath(Class<? super K> keyType, Class<? super V> valueType, Class<E> queryType, String variable)
protected 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)
Expressionaccept in interface Expression<Map<K,V>>R - return typeC - context typev - visitorcontext - context of visitprotected PathMetadata forMapAccess(K key)
protected PathMetadata forMapAccess(Expression<K> key)
public E get(Expression<K> key)
MapExpressionBasethis.get(key) expressionget in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>key - keypublic E get(K key)
MapExpressionBasethis.get(key) expressionget in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>key - keypublic PathMetadata getMetadata()
PathgetMetadata in interface Path<Map<K,V>>public AnnotatedElement getAnnotatedElement()
PathFor 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)
ParameterizedExpressiongetParameter in interface ParameterizedExpression<Map<K,V>>index - zero based index of type parameterCopyright © 2007–2016 Querydsl. All rights reserved.