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 java.lang.String[]
typeName
The "service", see JLS9 7.7.4.java.lang.String[][]
withTypeNames
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
Constructors Modifier Constructor Description protected
ProvidesModuleDirective(Location location, java.lang.String[] typeName, java.lang.String[][] withTypeNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends java.lang.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
-
-
-
-
Constructor Detail
-
ProvidesModuleDirective
protected ProvidesModuleDirective(Location location, java.lang.String[] typeName, java.lang.String[][] withTypeNames)
-
-
Method Detail
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description 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 java.lang.Throwable
-
-