Package | Description |
---|---|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
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.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Method and Description |
---|---|
TypeInitializer |
TypeResolutionStrategy.Resolved.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Passive.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Active.Resolved.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Lazy.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Disabled.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
Modifier and Type | Method and Description |
---|---|
TypeInitializer |
TypeResolutionStrategy.Resolved.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Passive.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Active.Resolved.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Lazy.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
TypeInitializer |
TypeResolutionStrategy.Disabled.injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeInitializer.None
Canonical implementation of a non-defined type initializer.
|
static class |
TypeInitializer.Simple
A simple, defined type initializer that executes a given
ByteCodeAppender . |
Modifier and Type | Field and Description |
---|---|
protected TypeInitializer |
TypeWriter.Default.typeInitializer
The type initializer to include in the created type's type initializer.
|
Modifier and Type | Method and Description |
---|---|
TypeInitializer |
TypeInitializer.expandWith(ByteCodeAppender byteCodeAppender)
Expands this type initializer with another byte code appender.
|
TypeInitializer |
TypeInitializer.None.expandWith(ByteCodeAppender byteCodeAppenderFactory)
Expands this type initializer with another byte code appender.
|
TypeInitializer |
TypeInitializer.Simple.expandWith(ByteCodeAppender byteCodeAppender)
Expands this type initializer with another byte code appender.
|
TypeInitializer |
MethodRegistry.Prepared.getTypeInitializer()
The type initializer of the instrumented type.
|
TypeInitializer |
MethodRegistry.Compiled.getTypeInitializer()
The type initializer of the instrumented type.
|
TypeInitializer |
MethodRegistry.Default.Prepared.getTypeInitializer()
The type initializer of the instrumented type.
|
TypeInitializer |
MethodRegistry.Default.Compiled.getTypeInitializer()
The type initializer of the instrumented type.
|
TypeInitializer |
InstrumentedType.getTypeInitializer()
Returns this instrumented type's type initializer.
|
TypeInitializer |
InstrumentedType.Default.getTypeInitializer()
Returns this instrumented type's type initializer.
|
TypeInitializer |
InstrumentedType.Frozen.getTypeInitializer()
Returns this instrumented type's type initializer.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeInitializer.Drain.apply(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
void |
TypeInitializer.Drain.Default.apply(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
void |
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.apply(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
void |
TypeWriter.Default.ForInlining.WithDecorationOnly.DecorationClassVisitor.apply(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
protected abstract TypeWriter.Default.UnresolvedType |
TypeWriter.Default.create(TypeInitializer typeInitializer)
Creates an unresolved version of the dynamic type.
|
protected TypeWriter.Default.UnresolvedType |
TypeWriter.Default.ForInlining.create(TypeInitializer typeInitializer) |
protected TypeWriter.Default.UnresolvedType |
TypeWriter.Default.ForCreation.create(TypeInitializer typeInitializer) |
protected abstract org.objectweb.asm.ClassVisitor |
TypeWriter.Default.ForInlining.writeTo(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which weaves all changes and additions on the fly.
|
protected org.objectweb.asm.ClassVisitor |
TypeWriter.Default.ForInlining.WithFullProcessing.writeTo(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which weaves all changes and additions on the fly.
|
protected org.objectweb.asm.ClassVisitor |
TypeWriter.Default.ForInlining.WithDecorationOnly.writeTo(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which weaves all changes and additions on the fly.
|
Constructor and Description |
---|
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.
|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
List<? extends MethodDescription.Token> methodTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
boolean anonymousClass,
boolean localClass,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
ForInlining(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a new inlining type writer.
|
Prepared(LinkedHashMap<MethodDescription,MethodRegistry.Default.Prepared.Entry> implementations,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
MethodList<?> methods)
Creates a prepared version of a default method registry.
|
RedefinitionClassVisitor(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which is capable of redefining an existent class on the fly.
|
WithFullProcessing(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodRegistry.Prepared methodRegistry,
Implementation.Target.Factory implementationTargetFactory,
MethodRebaseResolver methodRebaseResolver)
Creates a new inlining type writer that fully reprocesses a type.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Context.ExtractableView |
Implementation.Context.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.
|
Implementation.Context.ExtractableView |
Implementation.Context.Disabled.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.
|
Implementation.Context.ExtractableView |
Implementation.Context.Default.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion auxiliaryClassFileVersion)
Creates a new default implementation context.
|
Copyright © 2014–2018. All rights reserved.