public static final class Java.UsesModuleDirective extends Java.Located implements Java.ModuleDirective
| Modifier and Type | Field and Description |
|---|---|
String[] |
typeName
The "service" for which the current module may discover providers via
ServiceLoader. |
NOWHERE| Modifier | Constructor and Description |
|---|---|
protected |
UsesModuleDirective(Location location,
String[] typeName) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.ModuleDirectiveVisitor for the concrete Java.ModuleDirective type. |
getLocation, throwCompileExceptionpublic final String[] typeName
ServiceLoader.
See JLS9 7.7.3.@Nullable public <R,EX extends Throwable> R accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor) throws EX extends Throwable
Java.ModuleDirectivevisit...()" method of Visitor.ModuleDirectiveVisitor for the concrete Java.ModuleDirective type.accept in interface Java.ModuleDirectiveEX extends ThrowableCopyright © 2022. All rights reserved.