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. |
Modifier and Type | Method and Description |
---|---|
static <U> TypeWriter<U> |
TypeWriter.Default.forRebasing(MethodRegistry.Compiled methodRegistry,
TypeWriter.FieldPool fieldPool,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
ClassFileVersion classFileVersion,
ClassFileLocator classFileLocator,
TypeDescription targetType,
MethodRebaseResolver methodRebaseResolver)
Creates a type writer for creating a new type.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodRebaseResolver.AbstractBase
An abstract base implementation for a method rebase resolver.
|
static class |
MethodRebaseResolver.Disabled
A method rebase resolver that preserves any method in its original form.
|
static class |
MethodRebaseResolver.Enabled
A fully enabled method rebase resolver that is capable of rebasing both methods and constructors.
|
static class |
MethodRebaseResolver.MethodsOnly
A partly enabled method rebase resolver that is only capable of rebasing methods but not constructors.
|
Modifier and Type | Field and Description |
---|---|
protected MethodRebaseResolver |
RebaseImplementationTarget.methodRebaseResolver
A method rebase resolver to be used when calling a rebased method.
|
Modifier and Type | Method and Description |
---|---|
static MethodRebaseResolver |
MethodRebaseResolver.Enabled.make(MethodList instrumentedMethods,
TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a method rebase resolver which is only capable of rebasing constructors if the instrumented methods suggest this.
|
protected static MethodRebaseResolver |
MethodRebaseResolver.Enabled.of(MethodList instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a fully enabled method rebase resolver.
|
protected static MethodRebaseResolver |
MethodRebaseResolver.MethodsOnly.of(MethodList instrumentedMethods,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver that is only capable of rebasing methods but not constructors.
|
Constructor and Description |
---|
Factory(BridgeMethodResolver.Factory bridgeMethodResolverFactory,
MethodRebaseResolver methodRebaseResolver)
Creates a new factory for a rebase implementation target.
|
RebaseImplementationTarget(MethodLookupEngine.Finding finding,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
MethodRebaseResolver methodRebaseResolver)
Creates a rebase implementation target.
|
Copyright © 2014–2015. All rights reserved.