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()
Accessor
ExecutableElement.getReturnType()
if this is a method accessor,
or Element.asType()
for field accessors.public AccessorType getAccessorType()
Accessor
public String getSimpleName()
getSimpleName
in interface Accessor
public Set<Modifier> getModifiers()
getModifiers
in interface Accessor
public T getElement()
getElement
in interface Accessor
Element
, VariableElement
or ExecutableElement
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.