protected static class MethodRegistry.Default.Compiled extends Object implements MethodRegistry.Compiled
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodRegistry.Default.Compiled.Entry
An entry of a compiled method registry.
|
TypeWriter.MethodPool.Record
Modifier | Constructor and Description |
---|---|
protected |
Compiled(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations)
Creates a new compiled version of a default method registry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
MethodList<?> |
getInstrumentedMethods()
Returns a list of all methods that should be instrumented.
|
TypeDescription |
getInstrumentedType()
Returns the instrumented type that is to be created.
|
LoadedTypeInitializer |
getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.
|
TypeInitializer |
getTypeInitializer()
The type initializer of the instrumented type.
|
int |
hashCode() |
TypeWriter.MethodPool.Record |
target(MethodDescription methodDescription,
boolean supportsBridges)
Looks up a handler entry for a given method.
|
String |
toString() |
protected Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations)
instrumentedType
- The instrumented type.loadedTypeInitializer
- The loaded type initializer of the instrumented type.typeInitializer
- The type initializer of the instrumented type.implementations
- A map of all method descriptions mapped to their handling entries.public TypeDescription getInstrumentedType()
MethodRegistry.Compiled
getInstrumentedType
in interface MethodRegistry.Compiled
public LoadedTypeInitializer getLoadedTypeInitializer()
MethodRegistry.Compiled
getLoadedTypeInitializer
in interface MethodRegistry.Compiled
public TypeInitializer getTypeInitializer()
MethodRegistry.Compiled
getTypeInitializer
in interface MethodRegistry.Compiled
public MethodList<?> getInstrumentedMethods()
MethodRegistry.Compiled
getInstrumentedMethods
in interface MethodRegistry.Compiled
public TypeWriter.MethodPool.Record target(MethodDescription methodDescription, boolean supportsBridges)
TypeWriter.MethodPool
target
in interface TypeWriter.MethodPool
methodDescription
- The method being processed.supportsBridges
- true
if the created class supports bridge methods.Copyright © 2014–2016. All rights reserved.