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 Details

    • mainClass

      @MaybeNull private String mainClass
      The internal name of the main class or null if no main class is defined.
    • packages

      private final Set<String> packages
      The internal name of all packages of the module.
    • requires

      private final Map<String, ModuleDescription.Requires> requires
      A mapping of required modules to their configuration.
    • exports

      private final Map<String, ModuleDescription.Exports> exports
      A mapping of the internal names of exported packages to their configuration.
    • opens

      private final Map<String, ModuleDescription.Opens> opens
      A mapping of the internal names of opened packages to their configuration.
    • uses

      private final Set<String> uses
      A collection of internal names of used services.
    • provides

      private final Map<String, Set<String>> provides
      A mapping of the internal names of provided services to the internal names of the provided implementations.
  • 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

      public void visitMainClass(String mainClass)
      Overrides:
      visitMainClass in class org.objectweb.asm.ModuleVisitor
    • visitPackage

      public void visitPackage(String aPackage)
      Overrides:
      visitPackage in class org.objectweb.asm.ModuleVisitor
    • visitRequire

      public void visitRequire(String module, int modifiers, @MaybeNull String version)
      Overrides:
      visitRequire in class org.objectweb.asm.ModuleVisitor
    • visitExport

      public void visitExport(String aPackage, int modifiers, @MaybeNull String... module)
      Overrides:
      visitExport in class org.objectweb.asm.ModuleVisitor
    • visitOpen

      public void visitOpen(String aPackage, int modifiers, @MaybeNull String... module)
      Overrides:
      visitOpen in class org.objectweb.asm.ModuleVisitor
    • visitUse

      public void visitUse(String service)
      Overrides:
      visitUse in class org.objectweb.asm.ModuleVisitor
    • visitProvide

      public void visitProvide(String service, String... provider)
      Overrides:
      visitProvide in class org.objectweb.asm.ModuleVisitor
    • visitEnd

      public void visitEnd()
      Overrides:
      visitEnd in class org.objectweb.asm.ModuleVisitor