
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 Accessorpublic TypeMirror getAccessedType()
AccessorExecutableElement.getReturnType() if this is a method accessor,
or Element.asType() for field accessors.public AccessorType getAccessorType()
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.