Interface ModuleElement.ProvidesDirective

All Superinterfaces:
ModuleElement.Directive
Enclosing interface:
ModuleElement
public static interface ModuleElement.ProvidesDirective
extends ModuleElement.Directive

An implementation of a service provided by a module.

Since:
9

Method Summary

All Methods Instance Methods Abstract Methods
Modifier and Type Method Description
List<? extends TypeElement> getImplementations()

Returns the implementations of the service being provided.

TypeElement getService()

Returns the service being provided.

Methods declared in interface javax.lang.model.element.ModuleElement.Directive

accept, getKind

Method Detail

getService

TypeElement getService()

Returns the service being provided.

Returns:
the service being provided

getImplementations

List<? extends TypeElement> getImplementations()

Returns the implementations of the service being provided.

Returns:
the implementations of the service being provided