public class ParameterElementAccessor extends Object
Accessor
that wraps a VariableElement
.Modifier and Type | Field and Description |
---|---|
protected TypeMirror |
accessedType |
protected T |
element |
protected String |
name |
Constructor and Description |
---|
ParameterElementAccessor(Element element,
TypeMirror accessedType,
String name) |
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() |
protected final String name
protected final TypeMirror accessedType
public ParameterElementAccessor(Element element, TypeMirror accessedType, String name)
public String getSimpleName()
getSimpleName
in interface Accessor
public TypeMirror getAccessedType()
Accessor
ExecutableElement.getReturnType()
if this is a method accessor,
or Element.asType()
for field accessors.public AccessorType getAccessorType()
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.