Class ParameterElementAccessor
- java.lang.Object
-
- org.mapstruct.ap.internal.util.accessor.ParameterElementAccessor
-
- All Implemented Interfaces:
Accessor
public class ParameterElementAccessor extends Object
AnAccessorthat wraps aVariableElement.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeMirroraccessedTypeprotected Telementprotected Stringname
-
Constructor Summary
Constructors Constructor Description ParameterElementAccessor(Element element, TypeMirror accessedType, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeMirrorgetAccessedType()This returns the type that this accessor gives as a return.AccessorTypegetAccessorType()TgetElement()Set<Modifier>getModifiers()StringgetSimpleName()StringtoString()
-
-
-
Field Detail
-
name
protected final String name
-
accessedType
protected final TypeMirror accessedType
-
-
Constructor Detail
-
ParameterElementAccessor
public ParameterElementAccessor(Element element, TypeMirror accessedType, String name)
-
-
Method Detail
-
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleNamein interfaceAccessor- Returns:
- the simple name of the accessor
-
getAccessedType
public 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.- Returns:
- the type that the accessor gives as a return
-
getAccessorType
public AccessorType getAccessorType()
- Returns:
- type of the accessor
-
getModifiers
public Set<Modifier> getModifiers()
- Specified by:
getModifiersin interfaceAccessor- Returns:
- the set of modifiers that the accessor has
-
getElement
public T getElement()
- Specified by:
getElementin interfaceAccessor- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
-