Uses of Interface
net.bytebuddy.dynamic.scaffold.TypeInitializer
-
Packages that use TypeInitializer 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. -
-
Uses of TypeInitializer in net.bytebuddy.dynamic
Methods in net.bytebuddy.dynamic that return TypeInitializer Modifier and Type Method Description TypeInitializer
TypeResolutionStrategy.Active.Resolved. 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.TypeInitializer
TypeResolutionStrategy.Lazy. 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.Resolved. injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.Methods in net.bytebuddy.dynamic with parameters of type TypeInitializer Modifier and Type Method Description TypeInitializer
TypeResolutionStrategy.Active.Resolved. 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.TypeInitializer
TypeResolutionStrategy.Lazy. 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.Resolved. injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable. -
Uses of TypeInitializer in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement TypeInitializer Modifier and Type Class 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 givenByteCodeAppender
.Fields in net.bytebuddy.dynamic.scaffold declared as TypeInitializer Modifier and Type Field Description private TypeInitializer
InstrumentedType.Default. typeInitializer
The type initializer of the instrumented type.private TypeInitializer
MethodRegistry.Default.Compiled. typeInitializer
The type initializer of the instrumented type.private TypeInitializer
MethodRegistry.Default.Prepared. typeInitializer
The type initializer of the instrumented type.private TypeInitializer
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor. typeInitializer
The type initializer to apply.protected TypeInitializer
TypeWriter.Default. typeInitializer
The type initializer to include in the created type's type initializer.Methods in net.bytebuddy.dynamic.scaffold that return TypeInitializer Modifier and Type Method 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
InstrumentedType.Default. getTypeInitializer()
Returns this instrumented type's type initializer.TypeInitializer
InstrumentedType.Frozen. getTypeInitializer()
Returns this instrumented type's type initializer.TypeInitializer
InstrumentedType. getTypeInitializer()
Returns this instrumented type's type initializer.TypeInitializer
MethodRegistry.Compiled. getTypeInitializer()
The type initializer of the instrumented type.TypeInitializer
MethodRegistry.Default.Compiled. getTypeInitializer()
The type initializer of the instrumented type.TypeInitializer
MethodRegistry.Default.Prepared. getTypeInitializer()
The type initializer of the instrumented type.TypeInitializer
MethodRegistry.Prepared. getTypeInitializer()
The type initializer of the instrumented type.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TypeInitializer Modifier and Type Method 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.WithDecorationOnly.DecorationClassVisitor. 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.protected abstract TypeWriter.Default.UnresolvedType
TypeWriter.Default. create(TypeInitializer typeInitializer, TypeWriter.Default.ClassDumpAction.Dispatcher dispatcher)
Creates an unresolved version of the dynamic type.protected TypeWriter.Default.UnresolvedType
TypeWriter.Default.ForCreation. create(TypeInitializer typeInitializer, TypeWriter.Default.ClassDumpAction.Dispatcher dispatcher)
protected TypeWriter.Default.UnresolvedType
TypeWriter.Default.ForInlining. create(TypeInitializer typeInitializer, TypeWriter.Default.ClassDumpAction.Dispatcher dispatcher)
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.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 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.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type TypeInitializer Constructor Description Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, java.util.LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges)
Creates a new compiled version of a default method registry.Default(java.lang.String name, int modifiers, TypeDescription.Generic superClass, java.util.List<? extends TypeVariableToken> typeVariables, java.util.List<? extends TypeDescription.Generic> interfaceTypes, java.util.List<? extends FieldDescription.Token> fieldTokens, java.util.List<? extends MethodDescription.Token> methodTokens, java.util.List<? extends RecordComponentDescription.Token> recordComponentTokens, java.util.List<? extends AnnotationDescription> annotationDescriptions, TypeInitializer typeInitializer, LoadedTypeInitializer loadedTypeInitializer, TypeDescription declaringType, MethodDescription.InDefinedShape enclosingMethod, TypeDescription enclosingType, java.util.List<? extends TypeDescription> declaredTypes, java.util.List<? extends TypeDescription> permittedSubclasses, boolean anonymousClass, boolean localClass, boolean record, TypeDescription nestHost, java.util.List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, 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, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, 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, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, 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(java.util.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, TypeWriter.RecordComponentPool recordComponentPool, java.util.List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, 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. -
Uses of TypeInitializer in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as TypeInitializer Modifier and Type Field Description private TypeInitializer
Implementation.Context.Default. typeInitializer
The type initializer of the created instrumented type.Methods in net.bytebuddy.implementation with parameters of type TypeInitializer Modifier and Type Method Description Implementation.Context.ExtractableView
Implementation.Context.Default.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.Factory. make(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.Constructors in net.bytebuddy.implementation with parameters of type TypeInitializer Constructor Description Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion auxiliaryClassFileVersion)
Creates a new default implementation context.
-