@HashCodeAndEqualsPlugin.Enhance protected static class MethodRegistry.Default.Prepared extends java.lang.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 and Type | Field and Description |
---|---|
private java.util.LinkedHashMap<MethodDescription,MethodRegistry.Default.Prepared.Entry> |
implementations
A map of all method descriptions mapped to their handling entries.
|
private TypeDescription |
instrumentedType
The instrumented type.
|
private LoadedTypeInitializer |
loadedTypeInitializer
The loaded type initializer of the instrumented type.
|
private MethodGraph.Linked |
methodGraph
A method graph describing the instrumented type.
|
private MethodList<?> |
methods
The declared or virtually inherited methods of this type.
|
private TypeInitializer |
typeInitializer
The type initializer of the instrumented type.
|
Modifier | Constructor and Description |
---|---|
protected |
Prepared(java.util.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.
|
private final java.util.LinkedHashMap<MethodDescription,MethodRegistry.Default.Prepared.Entry> implementations
private final LoadedTypeInitializer loadedTypeInitializer
private final TypeInitializer typeInitializer
private final TypeDescription instrumentedType
private final MethodGraph.Linked methodGraph
private final MethodList<?> methods
protected Prepared(java.util.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.Prepared
public LoadedTypeInitializer getLoadedTypeInitializer()
getLoadedTypeInitializer
in interface MethodRegistry.Prepared
public TypeInitializer getTypeInitializer()
getTypeInitializer
in interface MethodRegistry.Prepared
public MethodList<?> getMethods()
getMethods
in interface MethodRegistry.Prepared
public MethodList<?> getInstrumentedMethods()
getInstrumentedMethods
in interface MethodRegistry.Prepared
public MethodRegistry.Compiled compile(Implementation.Target.Factory implementationTargetFactory, ClassFileVersion classFileVersion)
compile
in interface MethodRegistry.Prepared
implementationTargetFactory
- A factory for creating an implementation target.classFileVersion
- The type's class file version.