Class DelegateAccessor
- java.lang.Object
-
- org.mapstruct.ap.internal.util.accessor.DelegateAccessor
-
- All Implemented Interfaces:
Accessor
- Direct Known Subclasses:
ReadDelegateAccessor
public abstract class DelegateAccessor extends Object implements Accessor
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DelegateAccessor(Accessor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeMirror
getAccessedType()
This returns the type that this accessor gives as a return.AccessorType
getAccessorType()
Element
getElement()
Set<Modifier>
getModifiers()
String
getSimpleName()
-
-
-
Field Detail
-
delegate
protected final Accessor delegate
-
-
Constructor Detail
-
DelegateAccessor
protected DelegateAccessor(Accessor delegate)
-
-
Method Detail
-
getAccessedType
public TypeMirror getAccessedType()
Description copied from interface:Accessor
This 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:
getAccessedType
in interfaceAccessor
- Returns:
- the type that the accessor gives as a return
-
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleName
in interfaceAccessor
- Returns:
- the simple name of the accessor
-
getModifiers
public Set<Modifier> getModifiers()
- Specified by:
getModifiers
in interfaceAccessor
- Returns:
- the set of modifiers that the accessor has
-
getElement
public Element getElement()
- Specified by:
getElement
in interfaceAccessor
- Returns:
- the underlying
Element
,VariableElement
orExecutableElement
-
getAccessorType
public AccessorType getAccessorType()
- Specified by:
getAccessorType
in interfaceAccessor
- Returns:
- type of the accessor
-
-