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 | Field and Description |
---|---|
private static PowerMockClassTransformer |
classTransformer |
private static java.lang.instrument.Instrumentation |
instrumentation |
(package private) static java.lang.String |
javaSpecVersion |
(package private) static boolean |
jdk6OrLater |
Modifier | Constructor and Description |
---|---|
private |
PowerMockAgent() |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst) |
static PowerMockClassTransformer |
getClasstransformer() |
private static void |
initialize(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst) |
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() |
static final java.lang.String javaSpecVersion
static final boolean jdk6OrLater
private static final PowerMockClassTransformer classTransformer
private static java.lang.instrument.Instrumentation instrumentation
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
private static void initialize(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst) throws java.io.IOException
java.io.IOException
public static PowerMockClassTransformer getClasstransformer()
public static java.lang.instrument.Instrumentation instrumentation()
public static void verifyInitialization()
public static boolean initializeIfNeeded()
public static void initializeIfPossible()