
public class FieldElementAccessor extends Object
Accessor that wraps a VariableElement.| Constructor and Description |
|---|
FieldElementAccessor(VariableElement element) |
| Modifier and Type | Method and Description |
|---|---|
TypeMirror |
getAccessedType()
This returns the type that this accessor gives as a return.
|
AccessorType |
getAccessorType()
The accessor type
|
T |
getElement() |
Set<Modifier> |
getModifiers() |
String |
getSimpleName() |
String |
toString() |
public FieldElementAccessor(VariableElement element)
public TypeMirror getAccessedType()
AccessorExecutableElement.getReturnType() if this is a method accessor,
or Element.asType() for field accessors.public AccessorType getAccessorType()
Accessorpublic String getSimpleName()
getSimpleName in interface Accessorpublic Set<Modifier> getModifiers()
getModifiers in interface Accessorpublic T getElement()
getElement in interface AccessorElement, VariableElement or ExecutableElementCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.