Package net.bytebuddy.dynamic.scaffold
Interface MethodRegistry.Prepared
- All Known Implementing Classes:
MethodRegistry.Default.Prepared
- Enclosing interface:
- MethodRegistry
public static interface MethodRegistry.Prepared
A method registry that fully prepared the instrumented type.
-
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.
-
Method Details
-
getInstrumentedType
TypeDescription getInstrumentedType()Returns the fully prepared instrumented type.- Returns:
- The fully prepared instrumented type.
-
getMethods
MethodList<?> getMethods()Returns the declared or virtually inherited methods of this type.- Returns:
- The declared or virtually inherited methods of this type.
-
getInstrumentedMethods
MethodList<?> getInstrumentedMethods()Returns a list of all methods that should be instrumented.- Returns:
- A list of all methods that should be instrumented.
-
getLoadedTypeInitializer
LoadedTypeInitializer getLoadedTypeInitializer()Returns the loaded type initializer of the instrumented type.- Returns:
- The loaded type initializer of the instrumented type.
-
getTypeInitializer
TypeInitializer getTypeInitializer()The type initializer of the instrumented type.- Returns:
- The type initializer of the instrumented type.
-
compile
MethodRegistry.Compiled compile(Implementation.Target.Factory implementationTargetFactory, ClassFileVersion classFileVersion) Compiles this prepared method registry.- Parameters:
implementationTargetFactory
- A factory for creating an implementation target.classFileVersion
- The type's class file version.- Returns:
- A factory for creating an implementation target.
-