Class MethodRegistry.Default.Prepared
java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodRegistry.Default.Prepared
- All Implemented Interfaces:
MethodRegistry.Prepared
- Enclosing class:
MethodRegistry.Default
@Enhance
protected static class MethodRegistry.Default.Prepared
extends Object
implements MethodRegistry.Prepared
A prepared version of a default method registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAn entry of a prepared method registry. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrepared(LinkedHashMap<MethodDescription, MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods) Creates a prepared version of a default method registry. -
Method Summary
Modifier and TypeMethodDescriptioncompile(Implementation.Target.Factory implementationTargetFactory, ClassFileVersion classFileVersion) Compiles this prepared method registry.MethodList<?> Returns a list of all methods that should be instrumented.Returns the fully prepared instrumented type.Returns the loaded type initializer of the instrumented type.MethodList<?> Returns the declared or virtually inherited methods of this type.The type initializer of the instrumented type.
-
Constructor Details
-
Prepared
protected Prepared(LinkedHashMap<MethodDescription, MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods) Creates a prepared version of a default method registry.- Parameters:
implementations- A map of all method descriptions mapped to their handling entries.loadedTypeInitializer- The loaded type initializer of the instrumented type.typeInitializer- The type initializer of the instrumented type.instrumentedType- The instrumented type.methodGraph- A method graph describing the instrumented type.methods- The declared or virtually inherited methods of this type.
-
-
Method Details
-
getInstrumentedType
Returns the fully prepared instrumented type.- Specified by:
getInstrumentedTypein interfaceMethodRegistry.Prepared- Returns:
- The fully prepared instrumented type.
-
getLoadedTypeInitializer
Returns the loaded type initializer of the instrumented type.- Specified by:
getLoadedTypeInitializerin interfaceMethodRegistry.Prepared- Returns:
- The loaded type initializer of the instrumented type.
-
getTypeInitializer
The type initializer of the instrumented type.- Specified by:
getTypeInitializerin interfaceMethodRegistry.Prepared- Returns:
- The type initializer of the instrumented type.
-
getMethods
Returns the declared or virtually inherited methods of this type.- Specified by:
getMethodsin interfaceMethodRegistry.Prepared- Returns:
- The declared or virtually inherited methods of this type.
-
getInstrumentedMethods
Returns a list of all methods that should be instrumented.- Specified by:
getInstrumentedMethodsin interfaceMethodRegistry.Prepared- Returns:
- A list of all methods that should be instrumented.
-
compile
public MethodRegistry.Compiled compile(Implementation.Target.Factory implementationTargetFactory, ClassFileVersion classFileVersion) Compiles this prepared method registry.- Specified by:
compilein interfaceMethodRegistry.Prepared- Parameters:
implementationTargetFactory- A factory for creating an implementation target.classFileVersion- The type's class file version.- Returns:
- A factory for creating an implementation target.
-