public final class PowerMockAgent
extends java.lang.Object
premain method, which as the name implies is called
before the main method.premain(String, Instrumentation)| Modifier and Type | Method and Description |
|---|---|
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst) |
static org.powermock.modules.agent.PowerMockClassTransformer |
getClasstransformer() |
static boolean |
initializeIfNeeded() |
static void |
initializeIfPossible() |
static java.lang.instrument.Instrumentation |
instrumentation() |
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
This method must only be called by the JVM, to provide the instrumentation object.
|
static void |
verifyInitialization() |
public static void premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
throws java.lang.Exception
java.lang.Exceptionpublic static void agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
throws java.lang.Exception
java.lang.Exceptionpublic static org.powermock.modules.agent.PowerMockClassTransformer getClasstransformer()
public static java.lang.instrument.Instrumentation instrumentation()
public static void verifyInitialization()
public static boolean initializeIfNeeded()
public static void initializeIfPossible()