Package mockit.internal.startup
Class Startup
java.lang.Object
mockit.internal.startup.Startup
This is the "agent class" that initializes the JMockit "Java agent", provided the JVM is initialized with
-javaagent:<properPathTo>/jmockit-1-x.jar
.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<?> getClassIfLoaded
(String classDescOrName) static Instrumentation
static void
premain
(String agentArgs, Instrumentation inst) User-specified fakes will applied at this time, if the "fakes" system property is set to the fully qualified class names.static void
redefineMethods
(Class<?> classToRedefine, byte[] modifiedClassfile) static void
redefineMethods
(ClassDefinition... classDefs) static void
redefineMethods
(ClassIdentification classToRedefine, byte[] modifiedClassfile) static void
retransformClass
(Class<?> aClass) static void
-
Field Details
-
initializing
public static boolean initializing
-
-
Method Details
-
premain
User-specified fakes will applied at this time, if the "fakes" system property is set to the fully qualified class names.- Parameters:
agentArgs
- if "coverage", the coverage tool is activatedinst
- the instrumentation service provided by the JVM
-
instrumentation
-
verifyInitialization
public static void verifyInitialization() -
retransformClass
-
redefineMethods
public static void redefineMethods(@NonNull ClassIdentification classToRedefine, @NonNull byte[] modifiedClassfile) -
redefineMethods
public static void redefineMethods(@NonNull Class<?> classToRedefine, @NonNull byte[] modifiedClassfile) -
redefineMethods
-
getClassIfLoaded
-