Top Description Inners Fields Methods
net.bytebuddy.dynamic

public Interface ClassFileLocator

extends Closeable
Known Direct Subinterfaces
net.bytebuddy.dynamic.DynamicType
Known Direct Implementers
net.bytebuddy.dynamic.ClassFileLocator.NoOp, net.bytebuddy.dynamic.ClassFileLocator.Simple, net.bytebuddy.dynamic.ClassFileLocator.ForClassLoader, net.bytebuddy.dynamic.ClassFileLocator.ForClassLoader.WeaklyReferenced, net.bytebuddy.dynamic.ClassFileLocator.ForModule, net.bytebuddy.dynamic.ClassFileLocator.ForModule.WeaklyReferenced, net.bytebuddy.dynamic.ClassFileLocator.ForJarFile, net.bytebuddy.dynamic.ClassFileLocator.ForModuleFile, net.bytebuddy.dynamic.ClassFileLocator.ForFolder, net.bytebuddy.dynamic.ClassFileLocator.ForUrl, net.bytebuddy.dynamic.ClassFileLocator.ForInstrumentation, net.bytebuddy.dynamic.ClassFileLocator.PackageDiscriminating, net.bytebuddy.dynamic.ClassFileLocator.Filtering, net.bytebuddy.dynamic.ClassFileLocator.Compound
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.agent.builder.AgentBuilder, net.bytebuddy.build.AccessControllerPlugin, .HashCodeAndEqualsPlugin, net.bytebuddy.description.NamedElement, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.dynamic.loading.ClassLoadingStrategy, net.bytebuddy.matcher.ElementMatcher, net.bytebuddy.utility.JavaModule, .JavaType, .StreamDrainer, net.bytebuddy.utility.dispatcher.JavaDispatcher, net.bytebuddy.utility.nullability.AlwaysNull, .MaybeNull, java.io.*, java.lang.instrument.ClassFileTransformer, .Instrumentation, .UnmodifiableClassException, java.lang.ref.WeakReference, java.lang.reflect.Field, .Method, java.net.URL, .URLClassLoader, java.security.PrivilegedAction, .ProtectionDomain, java.util.*, java.util.jar.JarFile, java.util.regex.Pattern, java.util.zip.ZipEntry, .ZipFile

Locates a class file or its byte array representation when it is given its type description.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ClassFileLocator.Compound

A compound ClassFileLocator that chains several locators.

public static class
ClassFileLocator.Filtering

A class file locator that only applies for matched names.

public static class
ClassFileLocator.ForClassLoader

A class file locator that queries a class loader for binary representations of class files.

public static class
ClassFileLocator.ForFolder

A class file locator that finds files from a standardized Java folder structure with folders donating packages and class files being saved as <classname>.class files within their package folder.

public static class
ClassFileLocator.ForInstrumentation

A Java agent that allows the location of class files by emulating a retransformation.

public static class
ClassFileLocator.ForJarFile

A class file locator that locates classes within a Java jar file.

public static class
ClassFileLocator.ForModule

A class file locator that locates class files by querying a Java module's getResourceAsStream method.

public static class
ClassFileLocator.ForModuleFile

A class file locator that locates classes within a Java jmod file.

public static class
ClassFileLocator.ForUrl

A class file locator that reads class files from one or several URLs.

public static enum
ClassFileLocator.NoOp

A class file locator that cannot locate any class files.

public static class
ClassFileLocator.PackageDiscriminating

A class file locator that discriminates by a type's package.

public static interface
ClassFileLocator.Resolution

Represents a class file as binary data.

public static class
ClassFileLocator.Simple

A simple class file locator that returns class files from a selection of given types.

Field Summary

Modifier and TypeField and Description
public static final String
CLASS_FILE_EXTENSION

The file extension for a Java class file.

Method Summary

Modifier and TypeMethod and Description
public ClassFileLocator.Resolution

Returns:

Any binary representation of the type which might be illegal.
locate
(String
The name of the type to locate a class file representation for.
name
)

Locates the class file for a given type and returns the binary data of the class file.

Inherited from java.io.Closeable:
close