Uses of Class
net.bytebuddy.utility.JavaModule
Packages that use JavaModule
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
This package contains classes that are responsible for class loading of classes that are represented by
byte
arrays.Contains an API for matching Java byte code entities.
This package contains utility classes for common use within any Byte Buddy logic.
-
Uses of JavaModule in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as JavaModuleModifier and TypeFieldDescriptionprivate final JavaModule
AgentBuilder.Default.Transformation.TransformerIterator.module
The type's module.Fields in net.bytebuddy.agent.builder with type parameters of type JavaModuleModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super JavaModule> AgentBuilder.RawMatcher.ForElementMatchers.moduleMatcher
A module matcher to apply to ajava.lang.Module
.private final ElementMatcher
<? super JavaModule> AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.moduleMatcher
The matcher to use for the instrumented type's module.private final ElementMatcher
<? super JavaModule> AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.moduleMatcher
The matcher to use for the instrumented type's module.private final Set
<? extends JavaModule> AgentBuilder.Listener.ModuleReadEdgeCompleting.modules
The modules to add as a read edge to any transformed class's module.Methods in net.bytebuddy.agent.builder with parameters of type JavaModuleModifier and TypeMethodDescriptionAgentBuilder.DescriptionStrategy.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.AgentBuilder.DescriptionStrategy.SuperTypeLoading.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.AgentBuilder.assureReadEdgeFromAndTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.Default.assureReadEdgeFromAndTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.Default.Delegator.assureReadEdgeFromAndTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.Delegator.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.TypeStrategy.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.LocationStrategy.classFileLocator
(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.Compound.classFileLocator
(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.NoOp.classFileLocator
(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.Simple.classFileLocator
(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.private void
AgentBuilder.RedefinitionStrategy.Collector.doConsider
(AgentBuilder.RawMatcher matcher, AgentBuilder.Listener listener, TypeDescription typeDescription, Class<?> type, Class<?> classBeingRedefined, JavaModule module, boolean modifiable) Does consider the retransformation or redefinition of a loaded type.private byte[]
AgentBuilder.Default.ExecutingTransformer.doTransform
(JavaModule module, ClassLoader classLoader, String name, Class<?> classBeingRedefined, boolean loaded, ProtectionDomain protectionDomain, TypePool typePool, ClassFileLocator classFileLocator) Applies a transformation for a class that was captured by thisClassFileTransformer
.boolean
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled.isEnforced
(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.boolean
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.isEnforced
(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.boolean
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.Resubmitter.isEnforced
(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.AgentBuilder.Default.ExecutingTransformer.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.WithDelegation.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.WithDelegation.Substitutable.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.boolean
AgentBuilder.Default.Transformation.DifferentialMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.Default.Transformation.SimpleMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Conjunction.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Disjunction.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForElementMatchers.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForLoadState.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForResolvableTypes.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Inversion.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Trivial.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction.matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.boolean
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction.matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.boolean
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.boolean
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.boolean
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial.matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.boolean
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction.matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.boolean
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction.matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.boolean
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.boolean
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.boolean
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial.matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.void
AgentBuilder.Listener.Adapter.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.Compound.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.Filtering.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.NoOp.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.StreamWriting.onComplete
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked after a class was attempted to be loaded, independently of its treatment.void
AgentBuilder.Listener.Adapter.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.Compound.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.Filtering.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.NoOp.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.StreamWriting.onDiscovery
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked upon a type being supplied to a transformer.void
AgentBuilder.Listener.Adapter.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.Compound.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.Filtering.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.NoOp.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.StreamWriting.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.WithErrorsOnly.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) void
AgentBuilder.Listener.WithTransformationsOnly.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) void
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.Resubmitter.onError
(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) Invoked when an error has occurred during transformation.void
AgentBuilder.Listener.Adapter.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Compound.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Filtering.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.NoOp.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.StreamWriting.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Adapter.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Compound.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Filtering.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.ModuleReadEdgeCompleting.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) void
AgentBuilder.Listener.NoOp.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.StreamWriting.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) AgentBuilder.ClassFileBufferStrategy.resolve
(String name, byte[] binaryRepresentation, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Resolves a class file locator for the class file buffer that is provided to the class file transformer.private byte[]
AgentBuilder.Default.ExecutingTransformer.transform
(JavaModule module, ClassLoader classLoader, String internalTypeName, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Applies a transformation for a class that was captured by thisClassFileTransformer
.AgentBuilder.Transformer.ForAdvice.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForBuildPlugin.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForAdvice.wrap
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain, Advice advice) Allows for decoration of advice for subclass implementations of this transformer.Method parameters in net.bytebuddy.agent.builder with type arguments of type JavaModuleModifier and TypeMethodDescriptionAgentBuilder.assureReadEdgeFromAndTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.Default.assureReadEdgeFromAndTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.Default.Delegator.assureReadEdgeFromAndTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type and vice versa.AgentBuilder.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.Delegator.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.Constructors in net.bytebuddy.agent.builder with parameters of type JavaModuleModifierConstructorDescriptionprotected
TransformerIterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, List<AgentBuilder.Default.Transformation> transformations) Creates a new iterator.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type JavaModuleModifierConstructorDescriptionModuleReadEdgeCompleting
(Instrumentation instrumentation, boolean addTargetEdge, Set<? extends JavaModule> modules) Creates a new module read-edge completing listener. -
Uses of JavaModule in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as JavaModuleModifier and TypeFieldDescriptionprivate final JavaModule
ClassFileLocator.ForModule.module
The represented Java module.Methods in net.bytebuddy.dynamic with parameters of type JavaModuleModifier and TypeMethodDescriptionprotected static ClassFileLocator.Resolution
ClassFileLocator.ForModule.locate
(JavaModule module, String typeName) Creates a resolution for a Java module's class files.static ClassFileLocator
ClassFileLocator.ForModule.of
(JavaModule module) Returns a class file locator for the provided module.static ClassFileLocator
ClassFileLocator.ForModule.WeaklyReferenced.of
(JavaModule module) Creates a class file locator for a Java module where the module is referenced weakly.Constructors in net.bytebuddy.dynamic with parameters of type JavaModuleModifierConstructorDescriptionprotected
ForModule
(JavaModule module) Creates a new class file locator for a Java module. -
Uses of JavaModule in net.bytebuddy.dynamic.loading
Methods in net.bytebuddy.dynamic.loading with parameters of type JavaModuleModifier and TypeMethodDescriptionstatic void
ClassInjector.UsingInstrumentation.redefineModule
(Instrumentation instrumentation, JavaModule target, Set<JavaModule> reads, Map<String, Set<JavaModule>> exports, Map<String, Set<JavaModule>> opens, Set<Class<?>> uses, Map<Class<?>, List<Class<?>>> provides) Modifies a module's properties usingInstrumentation
.Method parameters in net.bytebuddy.dynamic.loading with type arguments of type JavaModuleModifier and TypeMethodDescriptionstatic void
ClassInjector.UsingInstrumentation.redefineModule
(Instrumentation instrumentation, JavaModule target, Set<JavaModule> reads, Map<String, Set<JavaModule>> exports, Map<String, Set<JavaModule>> opens, Set<Class<?>> uses, Map<Class<?>, List<Class<?>>> provides) Modifies a module's properties usingInstrumentation
.static void
ClassInjector.UsingInstrumentation.redefineModule
(Instrumentation instrumentation, JavaModule target, Set<JavaModule> reads, Map<String, Set<JavaModule>> exports, Map<String, Set<JavaModule>> opens, Set<Class<?>> uses, Map<Class<?>, List<Class<?>>> provides) Modifies a module's properties usingInstrumentation
. -
Uses of JavaModule in net.bytebuddy.matcher
Methods in net.bytebuddy.matcher with type parameters of type JavaModuleModifier and TypeMethodDescriptionstatic <T extends JavaModule>
ElementMatcher.Junction<T> ElementMatchers.supportsModules()
Matches a module if it exists, i.e. -
Uses of JavaModule in net.bytebuddy.utility
Fields in net.bytebuddy.utility declared as JavaModuleModifier and TypeFieldDescriptionstatic final JavaModule
JavaModule.UNSUPPORTED
Canonical representation of a Java module on a JVM that does not support the module API.Methods in net.bytebuddy.utility that return JavaModuleModifier and TypeMethodDescriptionstatic JavaModule
Represents the suppliedjava.lang.Module
as an instance of this class and validates that the supplied instance really represents a JavaModule
.static JavaModule
Returns a representation of the supplied type'sjava.lang.Module
ornull
if the current VM does not support modules.Methods in net.bytebuddy.utility with parameters of type JavaModuleModifier and TypeMethodDescriptionboolean
JavaModule.canRead
(JavaModule module) Checks if this module can read the exported packages of the supplied module.boolean
JavaModule.isExported
(PackageDescription packageDescription, JavaModule module) Returnstrue
if this module exports the supplied package to this module.boolean
JavaModule.isOpened
(PackageDescription packageDescription, JavaModule module) Returnstrue
if this module opens the supplied package to this module.