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<java.util.Map<K,V>>
MapPath represents map pathshashCode, mixin| Modifier | Constructor and Description |
|---|---|
protected |
MapPath(java.lang.Class<? super K> keyType,
java.lang.Class<? super V> valueType,
java.lang.Class<E> queryType,
Path<?> parent,
java.lang.String property) |
protected |
MapPath(java.lang.Class<? super K> keyType,
java.lang.Class<? super V> valueType,
java.lang.Class<E> queryType,
PathMetadata metadata) |
protected |
MapPath(java.lang.Class<? super K> keyType,
java.lang.Class<? super V> valueType,
java.lang.Class<E> queryType,
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
|
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 |
java.lang.reflect.AnnotatedElement |
getAnnotatedElement()
Return the annotated element related to the given path
|
java.lang.Class<K> |
getKeyType()
Get the key type
|
PathMetadata |
getMetadata()
Get the metadata for this path
|
java.lang.Class<?> |
getParameter(int index)
Get the type parameter at the given index
|
Path<?> |
getRoot()
Get the root for this path
|
java.lang.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(java.lang.Class<? super K> keyType, java.lang.Class<? super V> valueType, java.lang.Class<E> queryType, java.lang.String variable)
protected MapPath(java.lang.Class<? super K> keyType, java.lang.Class<? super V> valueType, java.lang.Class<E> queryType, Path<?> parent, java.lang.String property)
protected MapPath(java.lang.Class<? super K> keyType, java.lang.Class<? super V> valueType, java.lang.Class<E> queryType, PathMetadata metadata)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expressionaccept in interface Expression<java.util.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 java.lang.Class<K> getKeyType()
public PathMetadata getMetadata()
PathgetMetadata in interface Path<java.util.Map<K,V>>public java.lang.Class<V> getValueType()
public java.lang.reflect.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<java.util.Map<K,V>>public java.lang.Class<?> getParameter(int index)
ParameterizedExpressiongetParameter in interface ParameterizedExpression<java.util.Map<K,V>>index - zero based index of type parameterCopyright © 2007–2021 Querydsl. All rights reserved.