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.implementation |
The implementation package contains any logic for intercepting method calls.
|
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 |
TypeWriter.Default.typeInitializer
The type initializer of the instrumented type.
|
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.None.expandWith(StackManipulation stackManipulation) |
InstrumentedType.TypeInitializer |
InstrumentedType.TypeInitializer.Simple.expandWith(StackManipulation stackManipulation) |
InstrumentedType.TypeInitializer |
MethodRegistry.Prepared.getTypeInitializer()
The type initializer of the instrumented type.
|
InstrumentedType.TypeInitializer |
MethodRegistry.Compiled.getTypeInitializer()
The type initializer of the instrumented type.
|
InstrumentedType.TypeInitializer |
MethodRegistry.Default.Prepared.getTypeInitializer() |
InstrumentedType.TypeInitializer |
MethodRegistry.Default.Compiled.getTypeInitializer() |
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.
|
Compiled(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
Map<MethodDescription,TypeWriter.MethodPool.Entry> implementations)
Creates a new compiled version of a default method registry.
|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new type writer for creating a new type.
|
ForInlining(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods,
ClassFileLocator classFileLocator,
TypeDescription targetType,
MethodRebaseResolver methodRebaseResolver)
Creates a new type writer for inling a type into an existing type description.
|
Prepared(Map<MethodDescription,MethodRegistry.Default.Entry> implementations,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
MethodLookupEngine.Finding finding)
Creates a prepared version of a 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.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
InstrumentedType.TypeInitializer typeInitializer,
ClassFileVersion classFileVersion)
Creates a new implementation context.
|
Copyright © 2014–2015. All rights reserved.