Class MapPath<K,V,E extends SimpleExpression<? super V>>

Type Parameters:
K - key type
V - value type
E - result type for get(K) results
All Implemented Interfaces:
Expression<Map<K,V>>, MapExpression<K,V>, ParameterizedExpression<Map<K,V>>, Path<Map<K,V>>, Serializable

public class MapPath<K,V,E extends SimpleExpression<? super V>> extends MapExpressionBase<K,V,E> implements Path<Map<K,V>>
MapPath represents map paths
Author:
tiwe
See Also:
  • Constructor Details

  • Method Details

    • accept

      public final <R, C> R accept(Visitor<R,C> v, C context)
      Description copied from interface: Expression
      Accept the visitor with the given context
      Specified by:
      accept in interface Expression<K>
      Type Parameters:
      R - return type
      C - context type
      Parameters:
      v - visitor
      context - context of visit
      Returns:
      result of visit
    • forMapAccess

      protected PathMetadata forMapAccess(K key)
    • forMapAccess

      protected PathMetadata forMapAccess(Expression<K> key)
    • get

      public E get(Expression<K> key)
      Description copied from class: MapExpressionBase
      Create a this.get(key) expression
      Specified by:
      get in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>
      Parameters:
      key - key
      Returns:
      this.get(key)
    • get

      public E get(K key)
      Description copied from class: MapExpressionBase
      Create a this.get(key) expression
      Specified by:
      get in class MapExpressionBase<K,V,E extends SimpleExpression<? super V>>
      Parameters:
      key - key
      Returns:
      this.get(key)
    • getKeyType

      public Class<K> getKeyType()
      Get the key type
      Returns:
      key type
    • getMetadata

      public PathMetadata getMetadata()
      Description copied from interface: Path
      Get the metadata for this path
      Specified by:
      getMetadata in interface Path<K>
      Returns:
      path metadata
    • getRoot

      public Path<?> getRoot()
      Description copied from interface: Path
      Get the root for this path
      Specified by:
      getRoot in interface Path<K>
      Returns:
      root of path
    • getValueType

      public Class<V> getValueType()
      Get the value type
      Returns:
      value type
    • getAnnotatedElement

      public AnnotatedElement getAnnotatedElement()
      Description copied from interface: Path
      Return the annotated element related to the given 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.

      Specified by:
      getAnnotatedElement in interface Path<K>
      Returns:
      annotated element
    • getParameter

      public Class<?> getParameter(int index)
      Description copied from interface: ParameterizedExpression
      Get the type parameter at the given index
      Specified by:
      getParameter in interface ParameterizedExpression<K>
      Parameters:
      index - zero based index of type parameter
      Returns:
      type parameter at index