@HashCodeAndEqualsPlugin.Enhance protected static class MethodRegistry.Default.Prepared extends Object implements MethodRegistry.Prepared
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MethodRegistry.Default.Prepared.Entry
An entry of a prepared method registry.
|
| Modifier | Constructor and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
MethodRegistry.Compiled |
compile(Implementation.Target.Factory implementationTargetFactory,
ClassFileVersion classFileVersion)
Compiles this prepared method registry.
|
MethodList<?> |
getInstrumentedMethods()
Returns a list of all methods that should be instrumented.
|
TypeDescription |
getInstrumentedType()
Returns the fully prepared instrumented type.
|
LoadedTypeInitializer |
getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.
|
MethodList<?> |
getMethods()
Returns the declared or virtually inherited methods of this type.
|
TypeInitializer |
getTypeInitializer()
The type initializer of the instrumented type.
|
protected Prepared(LinkedHashMap<MethodDescription,MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods)
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.public TypeDescription getInstrumentedType()
getInstrumentedType in interface MethodRegistry.Preparedpublic LoadedTypeInitializer getLoadedTypeInitializer()
getLoadedTypeInitializer in interface MethodRegistry.Preparedpublic TypeInitializer getTypeInitializer()
getTypeInitializer in interface MethodRegistry.Preparedpublic MethodList<?> getMethods()
getMethods in interface MethodRegistry.Preparedpublic MethodList<?> getInstrumentedMethods()
getInstrumentedMethods in interface MethodRegistry.Preparedpublic MethodRegistry.Compiled compile(Implementation.Target.Factory implementationTargetFactory, ClassFileVersion classFileVersion)
compile in interface MethodRegistry.PreparedimplementationTargetFactory - A factory for creating an implementation target.classFileVersion - The type's class file version.Copyright © 2014–2025. All rights reserved.