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
Fields Modifier and Type Field Description String[]typeNameThe "service", see JLS9 7.7.4.String[][]withTypeNamesThe "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
Constructors Modifier Constructor Description protectedProvidesModuleDirective(Location location, String[] typeName, String[][] withTypeNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends Throwable>
Raccept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)Invokes the "visit...()" method ofVisitor.ModuleDirectiveVisitorfor the concreteJava.ModuleDirectivetype.-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Method Detail
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor) throws EX extends Throwable
Description copied from interface:Java.ModuleDirectiveInvokes the "visit...()" method ofVisitor.ModuleDirectiveVisitorfor the concreteJava.ModuleDirectivetype.- Specified by:
acceptin interfaceJava.ModuleDirective- Throws:
EX extends Throwable
-
-