public interface ClassFileLocator
Modifier and Type | Interface and Description |
---|---|
static class |
ClassFileLocator.AgentBased
A Java agent that allows the location of class files by emulating a retransformation.
|
static class |
ClassFileLocator.Compound
A compound
ClassFileLocator that chains several locators. |
static class |
ClassFileLocator.ForClassLoader
A class file locator that queries a class loader for binary representations of class files.
|
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. |
static class |
ClassFileLocator.ForJarFile
A class file locator that locates classes within a Java jar file.
|
static interface |
ClassFileLocator.Resolution
Represents a class file as binary data.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_FILE_EXTENSION
The file extension for a Java class file.
|
Modifier and Type | Method and Description |
---|---|
ClassFileLocator.Resolution |
locate(String typeName)
Locates the class file for a given type and returns the binary data of the class file.
|
static final String CLASS_FILE_EXTENSION
ClassFileLocator.Resolution locate(String typeName) throws IOException
typeName
- The name of the type to locate a class file representation for.IOException
- If reading a class file causes an error.Copyright © 2014–2015. All rights reserved.