| Package | Description |
|---|---|
| net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
| net.bytebuddy.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
| net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
| net.bytebuddy.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
| net.bytebuddy.instrumentation.type |
This package contains types and implementations for describing a Java type, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
InstrumentedType.TypeInitializer |
MethodRegistry.Compiled.getTypeInitializer()
The type initializer as it is required by this instance's
Instrumentations. |
InstrumentedType.TypeInitializer |
MethodRegistry.Default.Compiled.getTypeInitializer() |
| Constructor and Description |
|---|
Compiled(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
MethodList invokableMethods,
List<MethodRegistry.Default.Compiled.Entry> entries,
TypeWriter.MethodPool.Entry fallback)
Creates a new compiled default method registry.
|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
TypeWriter.Engine engine)
Creates a new immutable type writer.
|
Prepared(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<MethodRegistry.Default.Entry> entries,
List<MethodRegistry.Default.Entry> additionalEntries)
Creates a new prepared default method registry.
|
| Constructor and Description |
|---|
InlineInstrumentedType(TypeDescription levelType,
String name,
List<TypeDescription> interfaces,
int modifiers,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer)
Creates a new inlined instrumented type.
|
| Constructor and Description |
|---|
SubclassInstrumentedType(ClassFileVersion classFileVersion,
TypeDescription superClass,
List<TypeDescription> interfaces,
int modifiers,
String name,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer)
Creates a new immutable type instrumentation for a loaded superclass.
|
| Modifier and Type | Method and Description |
|---|---|
protected static TypeWriter.MethodPool.Entry |
Instrumentation.Context.Default.FieldCacheAppender.resolve(TypeWriter.MethodPool.Entry originalEntry,
Map<Instrumentation.Context.Default.FieldCacheEntry,FieldDescription> registeredFieldCacheEntries,
InstrumentedType.TypeInitializer typeInitializer,
Instrumentation.Context.ExtractableView.InjectedCode injectedCode)
Resolves the actual method pool entry to be applied for a given set of field cache entries and the
provided
Instrumentation.Context.ExtractableView.InjectedCode. |
| Constructor and Description |
|---|
Default(TypeDescription instrumentedType,
InstrumentedType.TypeInitializer typeInitializer,
ClassFileVersion classFileVersion)
Creates a new delegate.
|
Default(TypeDescription instrumentedType,
InstrumentedType.TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
String accessorMethodSuffix,
String fieldCachePrefix,
Instrumentation.Context.Default.AuxiliaryTypeNamingStrategy auxiliaryTypeNamingStrategy)
Creates a new delegate.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
InstrumentedType.TypeInitializer.None
Canonical implementation of a non-defined type initializer.
|
static class |
InstrumentedType.TypeInitializer.Simple
A simple, defined type initializer that executes a given
StackManipulation. |
| Modifier and Type | Field and Description |
|---|---|
protected InstrumentedType.TypeInitializer |
InstrumentedType.AbstractBase.typeInitializer
The type initializer for this instrumented type.
|
| Modifier and Type | Method and Description |
|---|---|
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.expandWith(StackManipulation stackManipulation)
Expands this type initializer with a stack manipulation.
|
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.Simple.expandWith(StackManipulation stackManipulation) |
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.None.expandWith(StackManipulation stackManipulation) |
InstrumentedType.TypeInitializer |
InstrumentedType.getTypeInitializer()
Returns this instrumented type's type initializer.
|
InstrumentedType.TypeInitializer |
InstrumentedType.AbstractBase.getTypeInitializer() |
| Constructor and Description |
|---|
AbstractBase(LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
String typeName,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions)
Creates a new instrumented type with the given loaded type initializer and field and methods.
|
Copyright © 2014. All rights reserved.