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 boolean |
isJava6OrLater() |
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 boolean isJava6OrLater()
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst) throws java.lang.Exception
java.lang.Exception
public static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst) throws java.lang.Exception
java.lang.Exception
public 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()