Package org.codehaus.janino
Class Java.ProvidesModuleDirective
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.ProvidesModuleDirective
- All Implemented Interfaces:
Java.Locatable
,Java.ModuleDirective
- Enclosing class:
- Java
public static final class Java.ProvidesModuleDirective
extends Java.Located
implements Java.ModuleDirective
Representation of a (Java 9+) "provides directive", as explained in JLS9 7.7.4.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String[]
The "service", see JLS9 7.7.4.final String[][]
The "service providers" declared in the "with
" clause of the directive; see JLS9 7.7.4.Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProvidesModuleDirective
(Location location, String[] typeName, String[][] withTypeNames) -
Method Summary
Modifier and TypeMethodDescription<R,
EX extends Throwable>
Raccept
(Visitor.ModuleDirectiveVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Field Details
-
typeName
The "service", see JLS9 7.7.4. -
withTypeNames
The "service providers" declared in the "with
" clause of the directive; see JLS9 7.7.4.
-
-
Constructor Details
-
ProvidesModuleDirective
-
-
Method Details
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.ModuleDirectiveVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.ModuleDirective
Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.- Specified by:
accept
in interfaceJava.ModuleDirective
- Throws:
EX extends Throwable
-