Class ElementAccessor
java.lang.Object
org.mapstruct.ap.internal.util.accessor.ElementAccessor
- All Implemented Interfaces:
Accessor
- Author:
- Filip Hrisafov, Tang Yang
-
Constructor Summary
ConstructorsConstructorDescriptionElementAccessor(Element element, TypeMirror accessedType, String name) ElementAccessor(Element element, TypeMirror accessedType, AccessorType accessorType) ElementAccessor(VariableElement variableElement, TypeMirror accessedType) -
Method Summary
Modifier and TypeMethodDescriptionThis returns the type that this accessor gives as a return.toString()
-
Constructor Details
-
ElementAccessor
-
ElementAccessor
-
ElementAccessor
-
-
Method Details
-
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, orVariableElement.asType()for field accessors.- Specified by:
getAccessedTypein interfaceAccessor- Returns:
- the type that the accessor gives as a return
-
getSimpleName
- Specified by:
getSimpleNamein interfaceAccessor- Returns:
- the simple name of the accessor
-
getModifiers
- Specified by:
getModifiersin interfaceAccessor- Returns:
- the set of modifiers that the accessor has
-
getElement
- Specified by:
getElementin interfaceAccessor- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
toString
-
getAccessorType
- Specified by:
getAccessorTypein interfaceAccessor- Returns:
- type of the accessor
-