| Modifier and Type | Class and Description |
|---|---|
| protected static class | SubclassDynamicTypeBuilder.
A matcher that locates all methods that are overridable and not ignored or that are directly defined on the instrumented type. |
| Modifier and Type | Field and Description |
|---|---|
| private final ConstructorStrategy | constructorStrategy
The constructor strategy to apply onto the instrumented type. |
| Access | Constructor and Description |
|---|---|
| public | SubclassDynamicTypeBuilder(InstrumentedType.
An instrumented type representing the subclass. instrumentedType,The class file version to use for types that are not based on an existing class file. classFileVersion, AuxiliaryType.The naming strategy to use for naming auxiliary types. auxiliaryTypeNamingStrategy,The annotation value filter factory to use. annotationValueFilterFactory,The annotation retention strategy to use. annotationRetention, Implementation.The implementation context factory to use. implementationContextFactory,The method graph compiler to use. methodGraphCompiler,Determines if a type should be explicitly validated. typeValidation, VisibilityBridgeStrategy The visibility bridge strategy to apply. visibilityBridgeStrategy, ClassWriterStrategy The class writer strategy to use. classWriterStrategy, LatentMatcher<? super MethodDescription> A matcher for identifying methods that should be excluded from instrumentation. ignoredMethods, ConstructorStrategy The constructor strategy to apply onto the instrumented type. constructorStrategy)Creates a new type builder for creating a subclass. |
| protected | SubclassDynamicTypeBuilder(InstrumentedType.
An instrumented type representing the subclass. instrumentedType,The field registry to use. fieldRegistry, MethodRegistry The method registry to use. methodRegistry, RecordComponentRegistry The record component registry to use. recordComponentRegistry, TypeAttributeAppender The type attribute appender to apply onto the instrumented type. typeAttributeAppender, AsmVisitorWrapper The ASM visitor wrapper to apply onto the class writer. asmVisitorWrapper, ClassFileVersion The class file version to use for types that are not based on an existing class file. classFileVersion, AuxiliaryType.The naming strategy to use for naming auxiliary types. auxiliaryTypeNamingStrategy,The annotation value filter factory to use. annotationValueFilterFactory,The annotation retention strategy to use. annotationRetention, Implementation.The implementation context factory to use. implementationContextFactory,The method graph compiler to use. methodGraphCompiler,Determines if a type should be explicitly validated. typeValidation, VisibilityBridgeStrategy The visibility bridge strategy to apply. visibilityBridgeStrategy, ClassWriterStrategy The class writer strategy to use. classWriterStrategy, LatentMatcher<? super MethodDescription> A matcher for identifying methods that should be excluded from instrumentation. ignoredMethods, List<? extends DynamicType> A list of explicitly required auxiliary types. auxiliaryTypes, ConstructorStrategy The constructor strategy to apply onto the instrumented type. constructorStrategy)Creates a new type builder for creating a subclass. |
| Modifier and Type | Method and Description |
|---|---|
| private InstrumentedType | Returns: The instrumented type with the constructor strategy applied onto.The instrumented type to apply the constructor onto. instrumentedType)Applies this builder's constructor strategy to the given instrumented type. |
| protected DynamicType. | materialize(InstrumentedType.
The instrumented type. instrumentedType,The current field registry. fieldRegistry, MethodRegistry The current method registry. methodRegistry, RecordComponentRegistry The record component pool to use. recordComponentRegistry, TypeAttributeAppender The type attribute appender to apply onto the instrumented type. typeAttributeAppender, AsmVisitorWrapper The ASM visitor wrapper to apply onto the class writer. asmVisitorWrapper, ClassFileVersion The class file version to define auxiliary types in. classFileVersion, AuxiliaryType.The naming strategy for auxiliary types to apply. auxiliaryTypeNamingStrategy,The annotation value filter factory to apply. annotationValueFilterFactory,The annotation retention to apply. annotationRetention, Implementation.The implementation context factory to apply. implementationContextFactory,The method graph compiler to use. methodGraphCompiler,The type validation state. typeValidation, VisibilityBridgeStrategy The visibility bridge strategy to apply. visibilityBridgeStrategy, ClassWriterStrategy The class writer strategy to use. classWriterStrategy, LatentMatcher<? super MethodDescription> A matcher for identifying methods that should be excluded from instrumentation. ignoredMethods, List<? extends DynamicType> A list of explicitly required auxiliary types. auxiliaryTypes)Implements abstract org. |
| protected TypeWriter | toTypeWriter()
Implements abstract org. TypeWriter without an explicitly specified TypePool.
|
| protected TypeWriter | toTypeWriter(TypePool
The typePool)TypePool to use.Implements abstract org. TypeWriter given the specified TypePool.
|
| constructorStrategy | back to summary |
|---|---|
| private final ConstructorStrategy constructorStrategy The constructor strategy to apply onto the instrumented type. | |
| SubclassDynamicTypeBuilder | back to summary |
|---|---|
| public SubclassDynamicTypeBuilder(InstrumentedType. Creates a new type builder for creating a subclass.
| |
| SubclassDynamicTypeBuilder | back to summary |
|---|---|
| protected SubclassDynamicTypeBuilder(InstrumentedType. Creates a new type builder for creating a subclass.
| |
| applyConstructorStrategy | back to summary |
|---|---|
| private InstrumentedType applyConstructorStrategy(InstrumentedType instrumentedType) Applies this builder's constructor strategy to the given instrumented type.
| |
| materialize | back to summary |
|---|---|
| protected DynamicType. Implements abstract org. Doc from org. Materializes the supplied state of a dynamic type builder.
| |
| toTypeWriter | back to summary |
|---|---|
| protected TypeWriter Implements abstract org. Doc from org. Creates a
| |
| toTypeWriter | back to summary |
|---|---|
| protected TypeWriter Implements abstract org. Doc from org. Creates a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final LatentMatcher | ignoredMethods
A matcher for the ignored methods. |
| Access | Constructor and Description |
|---|---|
| protected | InstrumentableMatcher(LatentMatcher<? super MethodDescription>
A matcher for the ignored methods. ignoredMethods)Creates a latent method matcher that matches all methods that are to be instrumented by a |
| Modifier and Type | Method and Description |
|---|---|
| public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements org. |
| ignoredMethods | back to summary |
|---|---|
| private final LatentMatcher<? super MethodDescription> ignoredMethods A matcher for the ignored methods. | |
| InstrumentableMatcher | back to summary |
|---|---|
| protected InstrumentableMatcher(LatentMatcher<? super MethodDescription> ignoredMethods) Creates a latent method matcher that matches all methods that are to be instrumented by a
| |
| resolve | back to summary |
|---|---|
| public ElementMatcher Implements org. Doc from org. Resolves the element matcher this instance represents for the supplied type description.
| |