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,
MethodList<?> methods,
LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations,
boolean supportsBridges)
Creates a new compiled version of a default method registry.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
MethodList<?> |
getMethods()
Returns the declared or virtually inherited methods of this type.
|
TypeInitializer |
getTypeInitializer()
The type initializer of the instrumented type.
|
TypeWriter.MethodPool.Record |
target(MethodDescription methodDescription)
Looks up a handler entry for a given method.
|
protected Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges)
instrumentedType - The instrumented type.loadedTypeInitializer - The loaded type initializer of the instrumented type.typeInitializer - The type initializer of the instrumented type.methods - The declared or virtually inherited methods of this type.implementations - A map of all method descriptions mapped to their handling entries.supportsBridges - true if the created type supports bridge methods.public TypeDescription getInstrumentedType()
MethodRegistry.CompiledgetInstrumentedType in interface MethodRegistry.Compiledpublic LoadedTypeInitializer getLoadedTypeInitializer()
MethodRegistry.CompiledgetLoadedTypeInitializer in interface MethodRegistry.Compiledpublic TypeInitializer getTypeInitializer()
MethodRegistry.CompiledgetTypeInitializer in interface MethodRegistry.Compiledpublic MethodList<?> getMethods()
MethodRegistry.CompiledgetMethods in interface MethodRegistry.Compiledpublic MethodList<?> getInstrumentedMethods()
MethodRegistry.CompiledgetInstrumentedMethods in interface MethodRegistry.Compiledpublic TypeWriter.MethodPool.Record target(MethodDescription methodDescription)
TypeWriter.MethodPooltarget in interface TypeWriter.MethodPoolmethodDescription - The method being processed.Copyright © 2014–2017. All rights reserved.