java.lang.instrument.Instrumentation Maven / Gradle / Ivy
The newest version!
package java.lang.instrument;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.jar.JarFile;
/* STUB class for 1.6 compilation */
public interface Instrumentation {
void addTransformer(ClassFileTransformer transformer, boolean canRetransform);
void addTransformer(ClassFileTransformer transformer);
boolean removeTransformer(ClassFileTransformer transformer);
boolean isRetransformClassesSupported();
void retransformClasses(Class>... classes) throws UnmodifiableClassException;
boolean isRedefineClassesSupported();
void redefineClasses(ClassDefinition... definitions)
throws ClassNotFoundException, UnmodifiableClassException;
boolean isModifiableClass(Class> theClass);
long getObjectSize(Object objectToSize);
void appendToBootstrapClassLoaderSearch(JarFile jarfile);
void appendToSystemClassLoaderSearch(JarFile jarfile);
boolean isNativeMethodPrefixSupported();
void setNativeMethodPrefix(ClassFileTransformer transformer, String prefix);
void redefineModule(Module module,
Set extraReads,
Map> extraExports,
Map> extraOpens,
Set> extraUses,
Map, List>> extraProvides);
boolean isModifiableModule(Module module);
}