Class MapValueAccessor
- java.lang.Object
-
- org.mapstruct.ap.internal.util.accessor.MapValueAccessor
-
- All Implemented Interfaces:
Accessor,ReadAccessor
public class MapValueAccessor extends java.lang.Object implements ReadAccessor
AnAccessorthat wraps a Map value.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.Elementelementprivate java.lang.StringsimpleNameprivate javax.lang.model.type.TypeMirrorvalueTypeMirror
-
Constructor Summary
Constructors Constructor Description MapValueAccessor(javax.lang.model.element.Element element, javax.lang.model.type.TypeMirror valueTypeMirror, java.lang.String simpleName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.type.TypeMirrorgetAccessedType()This returns the type that this accessor gives as a return.AccessorTypegetAccessorType()javax.lang.model.element.ElementgetElement()java.util.Set<javax.lang.model.element.Modifier>getModifiers()java.lang.StringgetReadValueSource()java.lang.StringgetSimpleName()
-
-
-
Method Detail
-
getAccessedType
public javax.lang.model.type.TypeMirror getAccessedType()
Description copied from interface:AccessorThis returns the type that this accessor gives as a return. e.g. TheExecutableElement.getReturnType()if this is a method accessor, orElement.asType()for field accessors.- Specified by:
getAccessedTypein interfaceAccessor- Returns:
- the type that the accessor gives as a return
-
getSimpleName
public java.lang.String getSimpleName()
- Specified by:
getSimpleNamein interfaceAccessor- Returns:
- the simple name of the accessor
-
getModifiers
public java.util.Set<javax.lang.model.element.Modifier> getModifiers()
- Specified by:
getModifiersin interfaceAccessor- Returns:
- the set of modifiers that the accessor has
-
getElement
public javax.lang.model.element.Element getElement()
- Specified by:
getElementin interfaceAccessor- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
getAccessorType
public AccessorType getAccessorType()
- Specified by:
getAccessorTypein interfaceAccessor- Returns:
- type of the accessor
-
getReadValueSource
public java.lang.String getReadValueSource()
- Specified by:
getReadValueSourcein interfaceReadAccessor
-
-