Interface Accessor
-
- All Known Subinterfaces:
ReadAccessor
- All Known Implementing Classes:
DelegateAccessor
,ExecutableElementAccessor
,FieldElementAccessor
,MapValueAccessor
,ParameterElementAccessor
,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeMirror
getAccessedType()
This returns the type that this accessor gives as a return.AccessorType
getAccessorType()
Element
getElement()
Set<Modifier>
getModifiers()
String
getSimpleName()
-
-
-
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
,VariableElement
orExecutableElement
-
getAccessorType
AccessorType getAccessorType()
- Returns:
- type of the accessor
-
-