Interface Accessor
- All Known Subinterfaces:
ReadAccessor
- All Known Implementing Classes:
DelegateAccessor,ElementAccessor,MapValueAccessor,ReadDelegateAccessor
public interface Accessor
This represents an Accessor that can be used for writing/reading a property to/from a bean.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionThis returns the type that this accessor gives as a return.
-
Method Details
-
getAccessedType
TypeMirror getAccessedType()This returns the type that this accessor gives as a return. e.g. TheExecutableElement.getReturnType()if this is a method accessor, orVariableElement.asType()for field accessors.- Returns:
- the type that the accessor gives as a return
-
getSimpleName
String getSimpleName()- Returns:
- the simple name of the accessor
-
getModifiers
- Returns:
- the set of modifiers that the accessor has
-
getElement
Element getElement()- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
getAccessorType
AccessorType getAccessorType()- Returns:
- type of the accessor
-