Class ExecutableElementAccessor
- java.lang.Object
-
- org.mapstruct.ap.internal.util.accessor.AbstractAccessor<javax.lang.model.element.ExecutableElement>
-
- org.mapstruct.ap.internal.util.accessor.ExecutableElementAccessor
-
- All Implemented Interfaces:
Accessor
public class ExecutableElementAccessor extends AbstractAccessor<javax.lang.model.element.ExecutableElement>
AnAccessorthat wraps anExecutableElement.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.type.TypeMirroraccessedTypeprivate AccessorTypeaccessorType-
Fields inherited from class org.mapstruct.ap.internal.util.accessor.AbstractAccessor
element
-
-
Constructor Summary
Constructors Constructor Description ExecutableElementAccessor(javax.lang.model.element.ExecutableElement element, javax.lang.model.type.TypeMirror accessedType, AccessorType accessorType)
-
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()java.lang.StringtoString()-
Methods inherited from class org.mapstruct.ap.internal.util.accessor.AbstractAccessor
getElement, getModifiers, getSimpleName
-
-
-
-
Field Detail
-
accessedType
private final javax.lang.model.type.TypeMirror accessedType
-
accessorType
private final AccessorType accessorType
-
-
Constructor Detail
-
ExecutableElementAccessor
public ExecutableElementAccessor(javax.lang.model.element.ExecutableElement element, javax.lang.model.type.TypeMirror accessedType, AccessorType accessorType)
-
-
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.- Returns:
- the type that the accessor gives as a return
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAccessorType
public AccessorType getAccessorType()
- Returns:
- type of the accessor
-
-