
public class VariableElementAccessor extends Object
Accessor that wraps a VariableElement.| Constructor and Description |
|---|
VariableElementAccessor(VariableElement element) |
| Modifier and Type | Method and Description |
|---|---|
TypeMirror |
getAccessedType()
This returns the type that this accessor gives as a return.
|
T |
getElement() |
ExecutableElement |
getExecutable() |
Set<Modifier> |
getModifiers() |
Name |
getSimpleName() |
public VariableElementAccessor(VariableElement element)
public TypeMirror getAccessedType()
AccessorExecutableElement.getReturnType() if this is a method accessor,
or Element.asType() for field accessors.public ExecutableElement getExecutable()
ExecutableElement, or null if the accessor does not have onepublic Name getSimpleName()
getSimpleName in interface Accessorpublic Set<Modifier> getModifiers()
getModifiers in interface Accessorpublic T getElement()
getElement in interface AccessorElementCopyright © 2012-2017 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.