| Package | Description | 
|---|---|
| net.bytebuddy.agent.builder | 
 An agent builder is used to easily implement load-time class-transformations using a Java agent. 
 | 
| net.bytebuddy.dynamic | 
 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. 
 | 
| net.bytebuddy.dynamic.loading | 
 This package contains classes that are responsible for class loading of classes that are represented by
  
byte arrays. | 
| net.bytebuddy.matcher | 
 Contains an API for matching Java byte code entities. 
 | 
| net.bytebuddy.utility | 
 This package contains utility classes for common use within any Byte Buddy logic. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TypeDescription | 
AgentBuilder.DescriptionStrategy.apply(String name,
     Class<?> type,
     TypePool typePool,
     AgentBuilder.CircularityLock circularityLock,
     ClassLoader classLoader,
     JavaModule module)
Describes the given type. 
 | 
TypeDescription | 
AgentBuilder.DescriptionStrategy.SuperTypeLoading.apply(String name,
     Class<?> type,
     TypePool typePool,
     AgentBuilder.CircularityLock circularityLock,
     ClassLoader classLoader,
     JavaModule module)
Describes the given type. 
 | 
TypeDescription | 
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.apply(String name,
     Class<?> type,
     TypePool typePool,
     AgentBuilder.CircularityLock circularityLock,
     ClassLoader classLoader,
     JavaModule module)
Describes the given type. 
 | 
AgentBuilder | 
AgentBuilder.assureReadEdgeFromAndTo(Instrumentation instrumentation,
                       JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type and vice versa. 
 | 
AgentBuilder | 
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 | 
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 | 
AgentBuilder.assureReadEdgeTo(Instrumentation instrumentation,
                JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
AgentBuilder | 
AgentBuilder.Default.assureReadEdgeTo(Instrumentation instrumentation,
                JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
AgentBuilder | 
AgentBuilder.Default.Delegator.assureReadEdgeTo(Instrumentation instrumentation,
                JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
DynamicType.Builder<?> | 
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. 
 | 
DynamicType.Builder<?> | 
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. 
 | 
ClassFileLocator | 
AgentBuilder.LocationStrategy.classFileLocator(ClassLoader classLoader,
                JavaModule module)
Creates a class file locator for a given class loader and module combination. 
 | 
ClassFileLocator | 
AgentBuilder.LocationStrategy.NoOp.classFileLocator(ClassLoader classLoader,
                JavaModule module)
Creates a class file locator for a given class loader and module combination. 
 | 
ClassFileLocator | 
AgentBuilder.LocationStrategy.Simple.classFileLocator(ClassLoader classLoader,
                JavaModule module)
Creates a class file locator for a given class loader and module combination. 
 | 
ClassFileLocator | 
AgentBuilder.LocationStrategy.Compound.classFileLocator(ClassLoader classLoader,
                JavaModule module)
Creates a class file locator for a given class loader and module combination. 
 | 
boolean | 
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.Resubmitter.isEnforced(String typeName,
          ClassLoader classLoader,
          JavaModule module,
          Class<?> classBeingRedefined)
Returns  
true if a class should be scheduled for resubmission. | 
boolean | 
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.isEnforced(String typeName,
          ClassLoader classLoader,
          JavaModule module,
          Class<?> classBeingRedefined)
Returns  
true if a class should be scheduled for resubmission. | 
boolean | 
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled.isEnforced(String typeName,
          ClassLoader classLoader,
          JavaModule module,
          Class<?> classBeingRedefined)
Returns  
true if a class should be scheduled for resubmission. | 
Iterator<AgentBuilder.Transformer> | 
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. 
 | 
Iterator<AgentBuilder.Transformer> | 
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. 
 | 
Iterator<AgentBuilder.Transformer> | 
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. 
 | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.matches(String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true if a type should be resubmitted if it is not yet loaded. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial.matches(String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true if a type should be resubmitted if it is not yet loaded. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction.matches(String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true if a type should be resubmitted if it is not yet loaded. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction.matches(String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true if a type should be resubmitted if it is not yet loaded. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.matches(String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true if a type should be resubmitted if it is not yet loaded. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.matches(Throwable throwable,
       String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true 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)
Returns  
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation. | 
boolean | 
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction.matches(Throwable throwable,
       String typeName,
       ClassLoader classLoader,
       JavaModule module)
Returns  
true 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)
Returns  
true 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)
Returns  
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation. | 
boolean | 
AgentBuilder.RawMatcher.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.Trivial.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.ForLoadState.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.ForResolvableTypes.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.Conjunction.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.Disjunction.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.Inversion.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.RawMatcher.ForElementMatchers.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.Default.Transformation.SimpleMatcher.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
boolean | 
AgentBuilder.Default.Transformation.DifferentialMatcher.matches(TypeDescription typeDescription,
       ClassLoader classLoader,
       JavaModule module,
       Class<?> classBeingRedefined,
       ProtectionDomain protectionDomain)
Decides if the given  
typeDescription should be instrumented with the entailed
 AgentBuilder.Transformers. | 
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.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.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.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.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.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.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.Adapter.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.Filtering.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.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.Adapter.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.Filtering.onError(String typeName,
       ClassLoader classLoader,
       JavaModule module,
       boolean loaded,
       Throwable throwable)
Invoked when an error has occurred during transformation. 
 | 
void | 
AgentBuilder.Listener.WithTransformationsOnly.onError(String typeName,
       ClassLoader classLoader,
       JavaModule module,
       boolean loaded,
       Throwable throwable)  | 
void | 
AgentBuilder.Listener.WithErrorsOnly.onError(String typeName,
       ClassLoader classLoader,
       JavaModule module,
       boolean loaded,
       Throwable throwable)  | 
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.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.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.Adapter.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.Filtering.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.onTransformation(TypeDescription typeDescription,
                ClassLoader classLoader,
                JavaModule module,
                boolean loaded,
                DynamicType dynamicType)
Invoked prior to a successful transformation being applied. 
 | 
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.Adapter.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.Filtering.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)  | 
void | 
AgentBuilder.Listener.ModuleReadEdgeCompleting.onTransformation(TypeDescription typeDescription,
                ClassLoader classLoader,
                JavaModule module,
                boolean loaded,
                DynamicType dynamicType)  | 
void | 
AgentBuilder.Listener.Compound.onTransformation(TypeDescription typeDescription,
                ClassLoader classLoader,
                JavaModule module,
                boolean loaded,
                DynamicType dynamicType)
Invoked prior to a successful transformation being applied. 
 | 
ClassFileLocator | 
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. 
 | 
DynamicType.Builder<?> | 
AgentBuilder.Transformer.transform(DynamicType.Builder<?> builder,
         TypeDescription typeDescription,
         ClassLoader classLoader,
         JavaModule module)
Allows for a transformation of a  
DynamicType.Builder. | 
DynamicType.Builder<?> | 
AgentBuilder.Transformer.ForBuildPlugin.transform(DynamicType.Builder<?> builder,
         TypeDescription typeDescription,
         ClassLoader classLoader,
         JavaModule module)
Allows for a transformation of a  
DynamicType.Builder. | 
DynamicType.Builder<?> | 
AgentBuilder.Transformer.ForAdvice.transform(DynamicType.Builder<?> builder,
         TypeDescription typeDescription,
         ClassLoader classLoader,
         JavaModule module)
Allows for a transformation of a  
DynamicType.Builder. | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
   ElementMatcher<? super ClassLoader> classLoaderMatcher,
   ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched. 
 | 
S | 
AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
   ElementMatcher<? super ClassLoader> classLoaderMatcher,
   ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched. 
 | 
AgentBuilder | 
AgentBuilder.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 | 
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 | 
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 | 
AgentBuilder.assureReadEdgeTo(Instrumentation instrumentation,
                Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
AgentBuilder | 
AgentBuilder.Default.assureReadEdgeTo(Instrumentation instrumentation,
                Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
AgentBuilder | 
AgentBuilder.Default.Delegator.assureReadEdgeTo(Instrumentation instrumentation,
                Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type. 
 | 
AgentBuilder.Ignored | 
AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
      ElementMatcher<? super ClassLoader> classLoaderMatcher,
      ElementMatcher<? super JavaModule> moduleMatcher)
 Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher. 
 | 
AgentBuilder.Ignored | 
AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
      ElementMatcher<? super ClassLoader> classLoaderMatcher,
      ElementMatcher<? super JavaModule> moduleMatcher)
 Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher. 
 | 
AgentBuilder.Ignored | 
AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
      ElementMatcher<? super ClassLoader> classLoaderMatcher,
      ElementMatcher<? super JavaModule> moduleMatcher)
 Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher. 
 | 
T | 
AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
  ElementMatcher<? super ClassLoader> classLoaderMatcher,
  ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched. 
 | 
S | 
AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
  ElementMatcher<? super ClassLoader> classLoaderMatcher,
  ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched. 
 | 
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification | 
AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitImmediate(ElementMatcher<String> typeNameMatcher,
                 ElementMatcher<? super ClassLoader> classLoaderMatcher,
                 ElementMatcher<? super JavaModule> moduleMatcher)
Specifies that transformations of unloaded types should not be transformed when they are loaded for the first
 time but should rather be resubmitted after they are loaded. 
 | 
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification | 
AgentBuilder.Default.Redefining.WithResubmission.resubmitImmediate(ElementMatcher<String> typeNameMatcher,
                 ElementMatcher<? super ClassLoader> classLoaderMatcher,
                 ElementMatcher<? super JavaModule> moduleMatcher)
Specifies that transformations of unloaded types should not be transformed when they are loaded for the first
 time but should rather be resubmitted after they are loaded. 
 | 
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification | 
AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher,
               ElementMatcher<String> typeNameMatcher,
               ElementMatcher<? super ClassLoader> classLoaderMatcher,
               ElementMatcher<? super JavaModule> moduleMatcher)
Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the
 loaded type, given that the specified matchers match the type in question. 
 | 
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification | 
AgentBuilder.Default.Redefining.WithResubmission.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher,
               ElementMatcher<String> typeNameMatcher,
               ElementMatcher<? super ClassLoader> classLoaderMatcher,
               ElementMatcher<? super JavaModule> moduleMatcher)
Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the
 loaded type, given that the specified matchers match the type in question. 
 | 
AgentBuilder.Identified.Narrowable | 
AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher,
    ElementMatcher<? super ClassLoader> classLoaderMatcher,
    ElementMatcher<? super JavaModule> moduleMatcher)
 Matches a type being loaded in order to apply the supplied  
AgentBuilder.Transformers before loading this type. | 
AgentBuilder.Identified.Narrowable | 
AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher,
    ElementMatcher<? super ClassLoader> classLoaderMatcher,
    ElementMatcher<? super JavaModule> moduleMatcher)
 Matches a type being loaded in order to apply the supplied  
AgentBuilder.Transformers before loading this type. | 
AgentBuilder.Identified.Narrowable | 
AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher,
    ElementMatcher<? super ClassLoader> classLoaderMatcher,
    ElementMatcher<? super JavaModule> moduleMatcher)
 Matches a type being loaded in order to apply the supplied  
AgentBuilder.Transformers before loading this type. | 
| Constructor and Description | 
|---|
TransformerIterator(TypeDescription typeDescription,
                   ClassLoader classLoader,
                   JavaModule module,
                   Class<?> classBeingRedefined,
                   ProtectionDomain protectionDomain,
                   List<AgentBuilder.Default.Transformation> transformations)
Creates a new iterator. 
 | 
| Constructor and Description | 
|---|
ForElementMatchers(ElementMatcher<? super Throwable> exceptionMatcher,
                  ElementMatcher<String> typeNameMatcher,
                  ElementMatcher<? super ClassLoader> classLoaderMatcher,
                  ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new matcher for resubmission upon an exception that is using element matchers. 
 | 
ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher,
                  ElementMatcher<? super ClassLoader> classLoaderMatcher,
                  ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new  
AgentBuilder.RawMatcher that only matches the
 supplied TypeDescription, its ClassLoader and module against element
 suitable matchers. | 
ForElementMatchers(ElementMatcher<String> typeNameMatcher,
                  ElementMatcher<? super ClassLoader> classLoaderMatcher,
                  ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new matcher for immediate resubmission that is using element matchers. 
 | 
ModuleReadEdgeCompleting(Instrumentation instrumentation,
                        boolean addTargetEdge,
                        Set<? extends JavaModule> modules)
Creates a new module read-edge completing listener. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected 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. 
 | 
| Constructor and Description | 
|---|
ForModule(JavaModule module)
Creates a new class file locator for a Java module. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 using  
Instrumentation. | 
| Modifier and Type | Method and Description | 
|---|---|
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 using  
Instrumentation. | 
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 using  
Instrumentation. | 
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 using  
Instrumentation. | 
| Modifier and Type | Method and Description | 
|---|---|
static <T extends JavaModule> | 
ElementMatchers.supportsModules()
Matches a module if it exists, i.e. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static JavaModule | 
JavaModule.UNSUPPORTED
Canonical representation of a Java module on a JVM that does not support the module API. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static JavaModule | 
JavaModule.of(Object module)
Represents the supplied  
java.lang.Module as an instance of this class and validates that the
 supplied instance really represents a Java Module. | 
static JavaModule | 
JavaModule.ofType(Class<?> type)
Returns a representation of the supplied type's  
java.lang.Module or null if the current VM does not support modules. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
JavaModule.canRead(JavaModule module)
Checks if this module can read the exported packages of the supplied module. 
 | 
boolean | 
JavaModule.isExported(PackageDescription packageDescription,
          JavaModule module)
Returns  
true if this module exports the supplied package to this module. | 
boolean | 
JavaModule.isOpened(PackageDescription packageDescription,
        JavaModule module)
Returns  
true if this module opens the supplied package to this module. | 
Copyright © 2014–2021. All rights reserved.