public enum TransformStrategy extends java.lang.Enum<TransformStrategy>
MockTransformer have PowerMock is started via Runner(FactoryObject), Rule or JavaAgent| Enum Constant and Description |
|---|
CLASSLOADER |
INST_REDEFINE |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isAgentMode()
Check if this strategy is supported only by Java Agent.
|
abstract boolean |
isClassloaderMode()
Check if this strategy is supported by class loader.
|
static TransformStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransformStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransformStrategy CLASSLOADER
public static final TransformStrategy INST_REDEFINE
public static TransformStrategy[] values()
for (TransformStrategy c : TransformStrategy.values()) System.out.println(c);
public static TransformStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract boolean isClassloaderMode()
true if a strategy is supported by class loader.public abstract boolean isAgentMode()
true if a strategy is supported only by Java Agent