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 default method registry.
|
Modifier | Constructor and Description |
---|---|
protected |
Compiled(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
MethodList invokableMethods,
List<MethodRegistry.Default.Compiled.Entry> entries,
TypeWriter.MethodPool.Entry fallback)
Creates a new compiled default method registry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
TypeDescription |
getInstrumentedType()
The readily prepared instrumented type with all optional members registered as they are required
by this instances
Instrumentation s. |
MethodList |
getInvokableMethods()
Returns a list of all methods that are invokable on the instrumented type.
|
LoadedTypeInitializer |
getLoadedTypeInitializer()
The type initializer as it is required by this instance's
Instrumentation s. |
int |
hashCode() |
TypeWriter.MethodPool.Entry |
target(MethodDescription methodDescription)
Looks up a handler entry for a given method.
|
String |
toString() |
protected Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, MethodList invokableMethods, List<MethodRegistry.Default.Compiled.Entry> entries, TypeWriter.MethodPool.Entry fallback)
instrumentedType
- The instrumented type.loadedTypeInitializer
- The loaded type initializer.invokableMethods
- A list of all methods that can be invoked on the instrumented type.entries
- The list of all compiled entries of this compiled method registry.fallback
- The fallback entry to apply for any method that is not matched by any of
the registered compiled entries.public TypeDescription getInstrumentedType()
MethodRegistry.Compiled
Instrumentation
s.getInstrumentedType
in interface MethodRegistry.Compiled
public LoadedTypeInitializer getLoadedTypeInitializer()
MethodRegistry.Compiled
Instrumentation
s.getLoadedTypeInitializer
in interface MethodRegistry.Compiled
public MethodList getInvokableMethods()
MethodRegistry.Compiled
getInvokableMethods
in interface MethodRegistry.Compiled
public TypeWriter.MethodPool.Entry target(MethodDescription methodDescription)
TypeWriter.MethodPool
target
in interface TypeWriter.MethodPool
methodDescription
- The method being processed.Copyright © 2014. All rights reserved.