Uses of Interface
net.bytebuddy.dynamic.ClassFileLocator
-
Packages that use ClassFileLocator Package Description net.bytebuddy Byte Buddy is a library for creating Java classes at runtime of a Java program.net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.build A package for types that allow for applying Byte Buddy transformation during a build process.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.loading This package contains classes that are responsible for class loading of classes that are represented bybytearrays.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 aDynamicTypeby enhancing a given type.net.bytebuddy.pool Classes of this package allow for the creatingTypeDescriptions without loading any classes.net.bytebuddy.utility This package contains utility classes for common use within any Byte Buddy logic. -
-
Uses of ClassFileLocator in net.bytebuddy
Methods in net.bytebuddy with parameters of type ClassFileLocator Modifier and Type Method Description <T> DynamicType.Builder<T>ByteBuddy. decorate(java.lang.Class<T> type, ClassFileLocator classFileLocator)Decorates a type withAsmVisitorWrapperand allows adding attributes and annotations.<T> DynamicType.Builder<T>ByteBuddy. decorate(TypeDescription type, ClassFileLocator classFileLocator)Decorates a type withAsmVisitorWrapperand allows adding attributes and annotations.static ClassFileVersionClassFileVersion. of(java.lang.Class<?> type, ClassFileLocator classFileLocator)Extracts a class' class version.static ClassFileVersionClassFileVersion. of(TypeDescription typeDescription, ClassFileLocator classFileLocator)Extracts a class' class version.<T> DynamicType.Builder<T>ByteBuddy. rebase(java.lang.Class<T> type, ClassFileLocator classFileLocator)Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T>ByteBuddy. rebase(java.lang.Class<T> type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.DynamicType.Builder<?>ByteBuddy. rebase(java.lang.Package aPackage, ClassFileLocator classFileLocator)Rebases a package.DynamicType.Builder<?>ByteBuddy. rebase(PackageDescription aPackage, ClassFileLocator classFileLocator)Rebases a package.<T> DynamicType.Builder<T>ByteBuddy. rebase(TypeDescription type, ClassFileLocator classFileLocator)Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T>ByteBuddy. rebase(TypeDescription type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T>ByteBuddy. redefine(java.lang.Class<T> type, ClassFileLocator classFileLocator)Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.<T> DynamicType.Builder<T>ByteBuddy. redefine(TypeDescription type, ClassFileLocator classFileLocator)Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation. -
Uses of ClassFileLocator in net.bytebuddy.agent.builder
Classes in net.bytebuddy.agent.builder that implement ClassFileLocator Modifier and Type Class Description protected static classAgentBuilder.Transformer.ForAdvice.LazyDynamicTypeA lazy dynamic type that only loads a class file representation on demand.Fields in net.bytebuddy.agent.builder declared as ClassFileLocator Modifier and Type Field Description protected ClassFileLocatorAgentBuilder.Default. classFileLocatorA class file locator to be used for additional lookup of globally available types.private ClassFileLocatorAgentBuilder.Default.ExecutingTransformer. classFileLocatorA class file locator for locating globally available types.private ClassFileLocatorAgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer. classFileLocatorThe class file locator to use.private ClassFileLocatorAgentBuilder.LocationStrategy.Simple. classFileLocatorThe class file locator to query.private ClassFileLocatorAgentBuilder.Transformer.ForAdvice. classFileLocatorThe class file locator to query for the advice class.private ClassFileLocatorAgentBuilder.Transformer.ForAdvice.LazyDynamicType. classFileLocatorThe class file locator to use.Methods in net.bytebuddy.agent.builder that return ClassFileLocator Modifier and Type Method Description ClassFileLocatorAgentBuilder.LocationStrategy. classFileLocator(java.lang.ClassLoader classLoader, JavaModule module)Creates a class file locator for a given class loader and module combination.ClassFileLocatorAgentBuilder.LocationStrategy.Compound. classFileLocator(java.lang.ClassLoader classLoader, JavaModule module)Creates a class file locator for a given class loader and module combination.ClassFileLocatorAgentBuilder.LocationStrategy.NoOp. classFileLocator(java.lang.ClassLoader classLoader, JavaModule module)Creates a class file locator for a given class loader and module combination.ClassFileLocatorAgentBuilder.LocationStrategy.Simple. classFileLocator(java.lang.ClassLoader classLoader, JavaModule module)Creates a class file locator for a given class loader and module combination.ClassFileLocatorAgentBuilder.ClassFileBufferStrategy. resolve(java.lang.String name, byte[] binaryRepresentation, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)Resolves a class file locator for the class file buffer that is provided to the class file transformer.Methods in net.bytebuddy.agent.builder with parameters of type ClassFileLocator Modifier and Type Method Description DynamicType.Builder<?>AgentBuilder.TypeStrategy. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)Creates a type builder for a given type.DynamicType.Builder<?>AgentBuilder.TypeStrategy.ForBuildEntryPoint. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)Creates a type builder for a given type.private byte[]AgentBuilder.Default.ExecutingTransformer. doTransform(JavaModule module, java.lang.ClassLoader classLoader, java.lang.String name, java.lang.Class<?> classBeingRedefined, boolean loaded, java.security.ProtectionDomain protectionDomain, TypePool typePool, ClassFileLocator classFileLocator)Applies a transformation for a class that was captured by thisClassFileTransformer.AgentBuilder.Transformer.ForAdviceAgentBuilder.Transformer.ForAdvice. include(ClassFileLocator... classFileLocator)Includes the supplied class file locators as a source for looking up an advice class or its dependencies.ResettableClassFileTransformerAgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)Creates a new class file transformer for the current VM.ResettableClassFileTransformerAgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)Creates a new class file transformer for the current VM.ResettableClassFileTransformerAgentBuilder.Default.ExecutingTransformer.Factory. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)Creates a new class file transformer for the current VM.protected AgentBuilder.Transformer.ForAdviceAgentBuilder.Transformer.ForAdvice. make(Advice.WithCustomMapping advice, Advice.ExceptionHandler exceptionHandler, Assigner assigner, ClassFileLocator classFileLocator, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, java.util.List<AgentBuilder.Transformer.ForAdvice.Entry> entries, java.util.List<java.lang.String> auxiliaries)Creates an advice transformer.protected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice. resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)protected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice. resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)protected abstract AdviceAgentBuilder.Transformer.ForAdvice.Entry. resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)Resolves the advice for this entry.TypePoolAgentBuilder.ClassFileBufferStrategy. typePool(AgentBuilder.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Resolves the type pool for a given type name by the suppliedAgentBuilder.PoolStrategy.TypePoolAgentBuilder.PoolStrategy.ClassLoading. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.ClassLoading. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.Default. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.Default. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.Eager. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.Eager. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.ExtraLazy. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.ExtraLazy. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.WithTypePoolCache. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)Creates a type pool for a given class file locator.TypePoolAgentBuilder.PoolStrategy.WithTypePoolCache. typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader, java.lang.String name)Creates a type pool for a given class file locator.AgentBuilderAgentBuilder.Default.Delegator. with(ClassFileLocator classFileLocator)Registers an additional class file locator for types that are globally available but cannot be located otherwise.AgentBuilderAgentBuilder.Default. with(ClassFileLocator classFileLocator)Registers an additional class file locator for types that are globally available but cannot be located otherwise.AgentBuilderAgentBuilder. with(ClassFileLocator classFileLocator)Registers an additional class file locator for types that are globally available but cannot be located otherwise.AgentBuilder.LocationStrategyAgentBuilder.LocationStrategy.ForClassLoader. withFallbackTo(ClassFileLocator... classFileLocator)Adds additional location strategies as fallbacks to this location strategy.Method parameters in net.bytebuddy.agent.builder with type arguments of type ClassFileLocator Modifier and Type Method Description AgentBuilder.Transformer.ForAdviceAgentBuilder.Transformer.ForAdvice. include(java.util.List<? extends ClassFileLocator> classFileLocators)Includes the supplied class file locators as a source for looking up an advice class or its dependencies.AgentBuilder.LocationStrategyAgentBuilder.LocationStrategy.ForClassLoader. withFallbackTo(java.util.Collection<? extends ClassFileLocator> classFileLocators)Adds additional location strategies as fallbacks to this location strategy. -
Uses of ClassFileLocator in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as ClassFileLocator Modifier and Type Field Description private ClassFileLocatorMemberSubstitution.TypePoolResolver.ForClassFileLocator. classFileLocatorThe class file locator to use.Methods in net.bytebuddy.asm with parameters of type ClassFileLocator Modifier and Type Method Description static AdviceAdvice. to(java.lang.Class<?> enterAdvice, java.lang.Class<?> exitAdvice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice. to(java.lang.Class<?> advice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.protected static AdviceAdvice. to(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory)Creates a new advice.protected static AdviceAdvice. to(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory)Creates a new advice.static AdviceAdvice. to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice. to(TypeDescription advice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.AdviceAdvice.WithCustomMapping. to(java.lang.Class<?> enterAdvice, java.lang.Class<?> exitAdvice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.AdviceAdvice.WithCustomMapping. to(java.lang.Class<?> advice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.AdviceAdvice.WithCustomMapping. to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.AdviceAdvice.WithCustomMapping. to(TypeDescription advice, ClassFileLocator classFileLocator)Implements advice where every matched method is advised by the given type's advisory methods.Constructors in net.bytebuddy.asm with parameters of type ClassFileLocator Constructor Description ForClassFileLocator(ClassFileLocator classFileLocator)Creates a new type pool resolver for a class file locator as a supplement of the implicit type pool.ForClassFileLocator(ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode)Creates a new type pool resolver for a class file locator as a supplement of the implicit type pool. -
Uses of ClassFileLocator in net.bytebuddy.build
Classes in net.bytebuddy.build that implement ClassFileLocator Modifier and Type Class Description protected static classPlugin.Engine.Default.SourceEntryPrependingClassFileLocatorA class file locator that shadows a givenPlugin.Engine.Source.Element's type with the explicit element.Fields in net.bytebuddy.build declared as ClassFileLocator Modifier and Type Field Description private ClassFileLocatorPlugin.Engine.Default. classFileLocatorThe class file locator to use.private ClassFileLocatorPlugin.Engine.Default.Preprocessor. classFileLocatorThe class file locator to use.private ClassFileLocatorPlugin.Engine.Default.SourceEntryPrependingClassFileLocator. delegateThe actual class file locator to query for all other types.Methods in net.bytebuddy.build that return ClassFileLocator Modifier and Type Method Description ClassFileLocatorPlugin.Engine.Source.Compound.Origin. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.Empty. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.ForFolder. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.InMemory. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.Origin.Filtering. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.Origin.ForJarFile. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.ClassFileLocatorPlugin.Engine.Source.Origin. toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source.Methods in net.bytebuddy.build with parameters of type ClassFileLocator Modifier and Type Method Description DynamicType.Builder<?>AccessControllerPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>CachedReturnPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>DispatcherAnnotationPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>HashCodeAndEqualsPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>ModuleVersionPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>Plugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>Plugin.NoOp. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>RenamingPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>RepeatedAnnotationPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>SafeVarargsPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>ToStringPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)Applies this plugin.DynamicType.Builder<?>Plugin.Engine.TypeStrategy. builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)Creates a builder for a given type.DynamicType.Builder<?>Plugin.Engine.TypeStrategy.ForEntryPoint. builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)Creates a builder for a given type.java.util.Map<TypeDescription,byte[]>Plugin.WithInitialization. initialize(ClassFileLocator classFileLocator)Returns a mapping of classes that should be created before discovering any types.voidPlugin.WithPreprocessor. onPreprocess(TypeDescription typeDescription, ClassFileLocator classFileLocator)Invoked upon the discovery of a type that is not explicitly ignored.DynamicType.Builder<?>EntryPoint. transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Applies a transformation.DynamicType.Builder<?>EntryPoint.Unvalidated. transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Applies a transformation.TypePoolPlugin.Engine.PoolStrategy.Default. typePool(ClassFileLocator classFileLocator)Creates a type pool.TypePoolPlugin.Engine.PoolStrategy.Eager. typePool(ClassFileLocator classFileLocator)Creates a type pool.TypePoolPlugin.Engine.PoolStrategy. typePool(ClassFileLocator classFileLocator)Creates a type pool.Plugin.EnginePlugin.Engine.Default. with(ClassFileLocator classFileLocator)Appends the supplied class file locator to be queried for class files additionally to any previously registered class file locators.Plugin.EnginePlugin.Engine. with(ClassFileLocator classFileLocator)Appends the supplied class file locator to be queried for class files additionally to any previously registered class file locators.Constructors in net.bytebuddy.build with parameters of type ClassFileLocator Constructor Description Default(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher)Creates a new default plugin engine.Preprocessor(Plugin.Engine.Source.Element element, java.lang.String typeName, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, TypePool typePool, Plugin.Engine.Listener listener, java.util.List<Plugin> plugins, java.util.List<Plugin.WithPreprocessor> preprocessors)Creates a new preprocessor.SourceEntryPrependingClassFileLocator(java.lang.String name, Plugin.Engine.Source.Element element, ClassFileLocator delegate)Creates a class file locator that prepends aPlugin.Engine.Source.Element. -
Uses of ClassFileLocator in net.bytebuddy.dynamic
Subinterfaces of ClassFileLocator in net.bytebuddy.dynamic Modifier and Type Interface Description interfaceDynamicTypeA dynamic type that is created at runtime, usually as the result of applying aDynamicType.Builderor as the result of anAuxiliaryType.static interfaceDynamicType.Loaded<T>A dynamic type that has been loaded into the running instance of the Java virtual machine.static interfaceDynamicType.Unloaded<T>A dynamic type that has not yet been loaded by a givenClassLoader.Classes in net.bytebuddy.dynamic that implement ClassFileLocator Modifier and Type Class Description static classClassFileLocator.CompoundA compoundClassFileLocatorthat chains several locators.static classClassFileLocator.FilteringA class file locator that only applies for matched names.static classClassFileLocator.ForClassLoaderA class file locator that queries a class loader for binary representations of class files.static classClassFileLocator.ForClassLoader.WeaklyReferencedA class file locator that queries a class loader for binary representations of class files.static classClassFileLocator.ForFolderA class file locator that finds files from a standardized Java folder structure with folders donating packages and class files being saved as<classname>.classfiles within their package folder.static classClassFileLocator.ForInstrumentationA Java agent that allows the location of class files by emulating a retransformation.static classClassFileLocator.ForJarFileA class file locator that locates classes within a Java jar file.static classClassFileLocator.ForModuleA class file locator that locates class files by querying a Java module'sgetResourceAsStreammethod.static classClassFileLocator.ForModule.WeaklyReferencedA class file locator for a Java module that only references this module weakly.static classClassFileLocator.ForModuleFileA class file locator that locates classes within a Java jmod file.static classClassFileLocator.ForUrlA class file locator that reads class files from one or several URLs.static classClassFileLocator.MultiReleaseAwareA class file locator that is aware of multi-release JAR file semantics.static classClassFileLocator.NoOpA class file locator that cannot locate any class files.static classClassFileLocator.PackageDiscriminatingA class file locator that discriminates by a type's package.static classClassFileLocator.SimpleA simple class file locator that returns class files from a selection of given types.static classDynamicType.AbstractBasestatic classDynamicType.DefaultA default implementation of a dynamic type.protected static classDynamicType.Default.Loaded<T>A default implementation of a loaded dynamic type.static classDynamicType.Default.Unloaded<T>A default implementation of an unloaded dynamic type.Fields in net.bytebuddy.dynamic declared as ClassFileLocator Modifier and Type Field Description private ClassFileLocatorClassFileLocator.Filtering. delegateThe delegate class file locator.Fields in net.bytebuddy.dynamic with type parameters of type ClassFileLocator Modifier and Type Field Description private java.util.List<ClassFileLocator>ClassFileLocator.Compound. classFileLocatorsTheClassFileLocators which are represented by this compound class file locator in the order of their application.private java.util.Map<java.lang.String,ClassFileLocator>ClassFileLocator.PackageDiscriminating. classFileLocatorsA mapping of package names to class file locators.Methods in net.bytebuddy.dynamic that return ClassFileLocator Modifier and Type Method Description static ClassFileLocatorClassFileLocator.ForInstrumentation. fromInstalledAgent(java.lang.ClassLoader classLoader)Returns an agent-based class file locator for the given class loader and an already installed Byte Buddy-agent.static ClassFileLocatorClassFileLocator.ForClassLoader. of(java.lang.ClassLoader classLoader)Creates a class file locator for a given class loader.static ClassFileLocatorClassFileLocator.ForClassLoader.WeaklyReferenced. of(java.lang.ClassLoader classLoader)Creates a class file locator for a given class loader.static ClassFileLocatorClassFileLocator.ForFolder. of(java.io.File folder, ClassFileVersion classFileVersion)Creates a new class file locator for a folder structure of class files.static ClassFileLocatorClassFileLocator.ForInstrumentation. of(java.lang.instrument.Instrumentation instrumentation, java.lang.Class<?> type)Returns a class file locator that is capable of locating a class file for the given type using the given instrumentation instance.static ClassFileLocatorClassFileLocator.ForJarFile. of(java.io.File file)Creates a new class file locator for the given jar file.static ClassFileLocatorClassFileLocator.ForJarFile. of(java.io.File file, ClassFileVersion classFileVersion)Creates a new class file locator for the given jar file.static ClassFileLocatorClassFileLocator.ForJarFile. of(java.util.jar.JarFile jarFile, ClassFileVersion classFileVersion)Creates a new class file locator for the given jar file.private static ClassFileLocatorClassFileLocator.ForJarFile. of(java.util.jar.JarFile jarFile, ClassFileVersion classFileVersion, boolean close)Creates a new class file locator for the given jar file.static ClassFileLocatorClassFileLocator.ForModule. of(JavaModule module)Returns a class file locator for the provided module.static ClassFileLocatorClassFileLocator.ForModule.WeaklyReferenced. of(JavaModule module)Creates a class file locator for a Java module where the module is referenced weakly.static ClassFileLocatorClassFileLocator.ForModuleFile. of(java.io.File file)Returns a class file locator for the given module file.static ClassFileLocatorClassFileLocator.Simple. of(java.lang.String typeName, byte[] binaryRepresentation)Creates a class file locator for a single known type.static ClassFileLocatorClassFileLocator.Simple. of(java.util.Map<TypeDescription,byte[]> binaryRepresentations)Creates a class file locator that represents all types of a dynamic type.static ClassFileLocatorClassFileLocator.Simple. of(DynamicType dynamicType)Creates a class file locator that represents all types of a dynamic type.static ClassFileLocatorClassFileLocator.ForModule. ofBootLayer()Returns a class file locator that exposes all class files of the boot module layer.static ClassFileLocatorClassFileLocator.ForClassLoader. ofBootLoader()Creates a class file locator that queries the boot loader.static ClassFileLocatorClassFileLocator.ForModuleFile. ofBootPath()Creates a new class file locator for this VM's boot module path.static ClassFileLocatorClassFileLocator.ForModuleFile. ofBootPath(java.io.File bootPath)Creates a new class file locator for a Java boot module path.static ClassFileLocatorClassFileLocator.ForJarFile. ofClassPath()Resolves a class file locator for the class path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForJarFile. ofClassPath(java.lang.String classPath)Resolves a class file locator for the class path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile. ofModulePath()Resolves a class file locator for this VM's Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile. ofModulePath(java.lang.String modulePath)Resolves a class file locator for a Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile. ofModulePath(java.lang.String modulePath, java.lang.String baseFolder)Resolves a class file locator for a Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForClassLoader. ofPlatformLoader()Creates a class file locator that queries the plaform class loader or the extension class loader if the current VM is not at least of version 9.static ClassFileLocatorClassFileLocator.Simple. ofResources(java.util.Map<java.lang.String,byte[]> binaryRepresentations)Creates a class file locator of a map of resources where class files are mapped by their path and file extension.static ClassFileLocatorClassFileLocator.ForJarFile. ofRuntimeJar()Resolves a class file locator for the runtime jar.static ClassFileLocatorClassFileLocator.ForClassLoader. ofSystemLoader()Creates a class file locator that queries the system class loader.Constructors in net.bytebuddy.dynamic with parameters of type ClassFileLocator Constructor Description Compound(ClassFileLocator... classFileLocator)Creates a new compound class file locator.Filtering(ElementMatcher<? super java.lang.String> matcher, ClassFileLocator delegate)Creates a new filtering class file locator.Constructor parameters in net.bytebuddy.dynamic with type arguments of type ClassFileLocator Constructor Description Compound(java.util.List<? extends ClassFileLocator> classFileLocators)Creates a new compound class file locator.PackageDiscriminating(java.util.Map<java.lang.String,ClassFileLocator> classFileLocators)Creates a new package-discriminating class file locator. -
Uses of ClassFileLocator in net.bytebuddy.dynamic.loading
Methods in net.bytebuddy.dynamic.loading with parameters of type ClassFileLocator Modifier and Type Method Description java.util.Map<TypeDescription,java.lang.Class<?>>ClassInjector.AbstractBase. inject(java.util.Set<? extends TypeDescription> types, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<TypeDescription,java.lang.Class<?>>ClassInjector. inject(java.util.Set<? extends TypeDescription> types, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector.UsingInstrumentation. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector.UsingJna. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector.UsingLookup. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector.UsingReflection. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.java.util.Map<java.lang.String,java.lang.Class<?>>ClassInjector.UsingUnsafe. injectRaw(java.util.Set<java.lang.String> names, ClassFileLocator classFileLocator)Injects the given types into the represented class loader.ClassReloadingStrategyClassReloadingStrategy. reset(ClassFileLocator classFileLocator, java.lang.Class<?>... type)Resets all classes to their original definition.abstract voidClassReloadingStrategy.Strategy. reset(java.lang.instrument.Instrumentation instrumentation, ClassFileLocator classFileLocator, java.util.List<java.lang.Class<?>> types)Resets the provided types to their original format. -
Uses of ClassFileLocator in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as ClassFileLocator Modifier and Type Field Description protected ClassFileLocatorTypeWriter.Default.ForInlining. classFileLocatorThe class file locator for locating the original type's class file.Methods in net.bytebuddy.dynamic.scaffold with parameters of type ClassFileLocator Modifier and Type Method Description static <U> TypeWriter<U>TypeWriter.Default. forDecoration(TypeDescription instrumentedType, ClassFileVersion classFileVersion, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.List<? extends MethodDescription> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, ClassFileLocator classFileLocator)Creates a type writer for decorating a type.static <U> TypeWriter<U>TypeWriter.Default. forRebasing(MethodRegistry.Prepared methodRegistry, java.util.List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRebaseResolver methodRebaseResolver)Creates a type writer for rebasing a type.static <U> TypeWriter<U>TypeWriter.Default. forRedefinition(MethodRegistry.Prepared methodRegistry, java.util.List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)Creates a type writer for redefining a type.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type ClassFileLocator Constructor Description 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)Creates a new inlining type writer.WithDecorationOnly(TypeDescription instrumentedType, ClassFileVersion classFileVersion, java.util.List<? extends DynamicType> auxiliaryTypes, MethodList<?> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, ClassFileLocator classFileLocator)Creates a new inlining type writer that only applies a decoration.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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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 ClassFileLocator in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline declared as ClassFileLocator Modifier and Type Field Description protected ClassFileLocatorAbstractInliningDynamicTypeBuilder. classFileLocatorThe class file locator for locating the original type's class file.private ClassFileLocatorDecoratingDynamicTypeBuilder. classFileLocatorThe class file locator for locating the original type's class file.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type ClassFileLocator Constructor Description AbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)Creates an inlining dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, ClassFileLocator classFileLocator)Creates a new decorating dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<DynamicType> auxiliaryTypes, ClassFileLocator classFileLocator)Creates a new decorating dynamic type builder.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Creates a rebase dynamic type builder.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Creates a rebase dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator)Creates a redefinition dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)Creates a redefinition dynamic type builder. -
Uses of ClassFileLocator in net.bytebuddy.pool
Fields in net.bytebuddy.pool declared as ClassFileLocator Modifier and Type Field Description protected ClassFileLocatorTypePool.Default. classFileLocatorThe locator to query for finding binary data of a type.Methods in net.bytebuddy.pool with parameters of type ClassFileLocator Modifier and Type Method Description static TypePoolTypePool.Default. of(ClassFileLocator classFileLocator)Creates a defaultTypePoolthat looks up data by querying the supplied class file locator.static TypePoolTypePool.Default.WithLazyResolution. of(ClassFileLocator classFileLocator)Creates a defaultTypePoolwith lazy resolution that looks up data by querying the supplied class file locator.Constructors in net.bytebuddy.pool with parameters of type ClassFileLocator Constructor Description Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode)Creates a new default type pool without a parent pool.Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool)Creates a new default type pool.Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory)Creates a new default type pool that uses an explicit class reader factory.Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool parentPool)Creates a new default type pool.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode)Creates a new default type pool with lazy resolution and without a parent pool.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool)Creates a new default type pool with lazy resolution.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool.Default.WithLazyResolution.LazinessMode lazinessMode)Creates a new default type pool with lazy resolution and without a parent pool.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool, TypePool.Default.WithLazyResolution.LazinessMode lazinessMode)Creates a new default type pool with lazy resolution.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory)Creates a new default type pool that uses an explicit class reader factory with lazy resolution.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool parentPool)Creates a new default type pool that uses an explicit class reader factory with lazy resolution.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool.Default.WithLazyResolution.LazinessMode lazinessMode)Creates a new default type pool that uses an explicit class reader factory with lazy resolution.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool parentPool, TypePool.Default.WithLazyResolution.LazinessMode lazinessMode)Creates a new default type pool that uses an explicit class reader factory with lazy resolution. -
Uses of ClassFileLocator in net.bytebuddy.utility
Methods in net.bytebuddy.utility with parameters of type ClassFileLocator Modifier and Type Method Description static JavaConstantJavaConstant.Simple. ofDescription(java.lang.Object value, ClassFileLocator classFileLocator)Creates a Java constant value from ajava.lang.constant.ConstantDesc.
-