Interface Accessor
-
- All Known Subinterfaces:
ReadAccessor
- All Known Implementing Classes:
AbstractAccessor,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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.lang.model.type.TypeMirrorgetAccessedType()This returns the type that this accessor gives as a return.AccessorTypegetAccessorType()javax.lang.model.element.ElementgetElement()java.util.Set<javax.lang.model.element.Modifier>getModifiers()java.lang.StringgetSimpleName()
-
-
-
Method Detail
-
getAccessedType
javax.lang.model.type.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
java.lang.String getSimpleName()
- Returns:
- the simple name of the accessor
-
getModifiers
java.util.Set<javax.lang.model.element.Modifier> getModifiers()
- Returns:
- the set of modifiers that the accessor has
-
getElement
javax.lang.model.element.Element getElement()
- Returns:
- the underlying
Element,VariableElementorExecutableElement
-
getAccessorType
AccessorType getAccessorType()
- Returns:
- type of the accessor
-
-