public final class PowerMockAgent extends 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(String agentArgs,
Instrumentation inst) |
static org.powermock.modules.agent.PowerMockClassTransformer |
getClasstransformer() |
static boolean |
initializeIfNeeded() |
static void |
initializeIfPossible() |
static Instrumentation |
instrumentation() |
static boolean |
isJava6OrLater() |
static void |
premain(String agentArgs,
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(String agentArgs, Instrumentation inst) throws Exception
Exception
public static void agentmain(String agentArgs, Instrumentation inst) throws Exception
Exception
public static org.powermock.modules.agent.PowerMockClassTransformer getClasstransformer()
public static Instrumentation instrumentation()
public static void verifyInitialization()
public static boolean initializeIfNeeded()
public static void initializeIfPossible()
Copyright © 2007–2016. All rights reserved.