Interface Accessor
-
- All Known Subinterfaces:
ReadAccessor
- All Known Implementing Classes:
DelegateAccessor,ExecutableElementAccessor,FieldElementAccessor,MapValueAccessor,ParameterElementAccessor,ReadDelegateAccessor
public interface AccessorThis represents an Accessor that can be used for writing/reading a property to/from a bean.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeMirrorgetAccessedType()This returns the type that this accessor gives as a return.AccessorTypegetAccessorType()ElementgetElement()Set<Modifier>getModifiers()StringgetSimpleName()
-
-
-
Method Detail
-
getAccessedType
TypeMirror getAccessedType()
This returns the type that this accessor gives as a return. e.g. TheExecutableElement.getReturnType()if this is a method accessor, orElement.asType()for field accessors.- Returns:
- the type that the accessor gives as a return
-
getSimpleName
String getSimpleName()
- Returns:
- the simple name of the accessor
-
getElement
Element getElement()
- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
getAccessorType
AccessorType getAccessorType()
- Returns:
- type of the accessor
-
-