Class TypeWriter.Default.ForCreation.PatchingModuleVisitor
java.lang.Object
org.objectweb.asm.ModuleVisitor
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ForCreation.PatchingModuleVisitor
- Enclosing class:
TypeWriter.Default.ForCreation<U>
protected static class TypeWriter.Default.ForCreation.PatchingModuleVisitor
extends org.objectweb.asm.ModuleVisitor
A class visitor that applies the subclass creation as a wrapper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ModuleDescription.Exports> A mapping of the internal names of exported packages to their configuration.private StringThe internal name of the main class ornullif no main class is defined.private final Map<String, ModuleDescription.Opens> A mapping of the internal names of opened packages to their configuration.The internal name of all packages of the module.A mapping of the internal names of provided services to the internal names of the provided implementations.private final Map<String, ModuleDescription.Requires> A mapping of required modules to their configuration.A collection of internal names of used services.Fields inherited from class org.objectweb.asm.ModuleVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPatchingModuleVisitor(org.objectweb.asm.ModuleVisitor moduleVisitor, ModuleDescription moduleDescription) Creates a module visitor that patches the module implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitEnd()voidvisitExport(String aPackage, int modifiers, String... module) voidvisitMainClass(String mainClass) voidvoidvisitPackage(String aPackage) voidvisitProvide(String service, String... provider) voidvisitRequire(String module, int modifiers, String version) voidMethods inherited from class org.objectweb.asm.ModuleVisitor
getDelegate
-
Field Details
-
mainClass
The internal name of the main class ornullif no main class is defined. -
packages
-
requires
A mapping of required modules to their configuration. -
exports
A mapping of the internal names of exported packages to their configuration. -
opens
A mapping of the internal names of opened packages to their configuration. -
uses
-
provides
-
-
Constructor Details
-
PatchingModuleVisitor
protected PatchingModuleVisitor(org.objectweb.asm.ModuleVisitor moduleVisitor, ModuleDescription moduleDescription) Creates a module visitor that patches the module implementation.- Parameters:
moduleVisitor- The module visitor to which the data is delegated to.moduleDescription- A description of the module.
-
-
Method Details
-
visitMainClass
- Overrides:
visitMainClassin classorg.objectweb.asm.ModuleVisitor
-
visitPackage
- Overrides:
visitPackagein classorg.objectweb.asm.ModuleVisitor
-
visitRequire
- Overrides:
visitRequirein classorg.objectweb.asm.ModuleVisitor
-
visitExport
- Overrides:
visitExportin classorg.objectweb.asm.ModuleVisitor
-
visitOpen
- Overrides:
visitOpenin classorg.objectweb.asm.ModuleVisitor
-
visitUse
- Overrides:
visitUsein classorg.objectweb.asm.ModuleVisitor
-
visitProvide
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classorg.objectweb.asm.ModuleVisitor
-