+
+
+Class ElementAccessor
+
+
+-
+
- java.lang.Object +
-
+
-
+
- org.mapstruct.ap.internal.util.accessor.ElementAccessor +
+
+
+-
+
-
+
-
+
- All Implemented Interfaces: +
Accessor
+
+public class ElementAccessor +extends Object
+An+Accessor
that wraps aVariableElement
.-
+
- Author: +
- Filip Hrisafov +
+
+
+-
+
-
+
+
+ + + ++ + +-
+
-
+
+
+
Constructor Summary
++
+Constructors ++ +Constructor +Description ++ + +ElementAccessor(Element element, + AccessorType accessorType)
+ + +ElementAccessor(VariableElement variableElement)
+
+ +-
+
-
+
+
+
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()
+ + +T
+getElement()
+ + +Set<Modifier>
+getModifiers()
+ + +String
+getSimpleName()
+ + +String
+toString()
+
+ -
+
+
+
+
+-
+
-
+
+
+ + + ++ + +-
+
-
+
+
+
Constructor Detail
+ + + +-
+
-
+
ElementAccessor
+public ElementAccessor(VariableElement variableElement)
+
+
-
+
-
+
ElementAccessor
+public ElementAccessor(Element element, + AccessorType accessorType)
+
+
+ -
+
+ +-
+
-
+
+
+
Method Detail
+ + + +-
+
-
+
getAccessedType
+public TypeMirror getAccessedType()
+Description copied from interface:+Accessor
This returns the type that this accessor gives as a return. + + e.g. The+ExecutableElement.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 +
+
-
+
-
+
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 T getElement()
+-
+
- Specified by: +
getElement
in interfaceAccessor
+- Returns: +
- the underlying
Element
,VariableElement
orExecutableElement
+
+
+ -
+
+ -
+
+
+