/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang.instrument; public interface Instrumentation { void addTransformer(ClassFileTransformer transformer); boolean removeTransformer(ClassFileTransformer transformer); boolean isRedefineClassesSupported(); void redefineClasses(ClassDefinition[] definitions) throws ClassNotFoundException, UnmodifiableClassException; Class[] getAllLoadedClasses(); Class[] getInitiatedClasses(ClassLoader loader); long getObjectSize(Object objectToSize); }