public enum TransformStrategy extends Enum<TransformStrategy>
MockTransformer
have PowerMock is started via Runner(FactoryObject), Rule or JavaAgentEnum 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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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 AgentCopyright © 2019. All rights reserved.