Class ExecutableElementAccessor

  • All Implemented Interfaces:
    Accessor

    public class ExecutableElementAccessor
    extends AbstractAccessor<javax.lang.model.element.ExecutableElement>
    An Accessor that wraps an ExecutableElement.
    • Field Detail

      • accessedType

        private final javax.lang.model.type.TypeMirror accessedType
    • Constructor Detail

      • ExecutableElementAccessor

        public ExecutableElementAccessor​(javax.lang.model.element.ExecutableElement element,
                                         javax.lang.model.type.TypeMirror accessedType,
                                         AccessorType accessorType)
    • Method Detail

      • getAccessedType

        public javax.lang.model.type.TypeMirror getAccessedType()
        Description copied from interface: Accessor
        This returns the type that this accessor gives as a return. e.g. The ExecutableElement.getReturnType() if this is a method accessor, or Element.asType() for field accessors.
        Returns:
        the type that the accessor gives as a return
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAccessorType

        public AccessorType getAccessorType()
        Returns:
        type of the accessor