Package org.powermock.core.classloader
Enum ByteCodeFramework
- java.lang.Object
-
- java.lang.Enum<ByteCodeFramework>
-
- org.powermock.core.classloader.ByteCodeFramework
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ByteCodeFramework>
public enum ByteCodeFramework extends java.lang.Enum<ByteCodeFramework>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Javassist
-
Constructor Summary
Constructors Modifier Constructor Description private
ByteCodeFramework()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract MockClassLoader
createClassloader(MockClassLoaderConfiguration configuration, UseClassPathAdjuster useClassPathAdjuster)
(package private) abstract MockTransformerChainFactory
createTransformerChainFactory()
private static ByteCodeFramework
getByteCodeFramework(java.lang.reflect.AnnotatedElement element)
static ByteCodeFramework
getByteCodeFrameworkForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method method)
static ByteCodeFramework
getByteCodeFrameworkForTestClass(java.lang.Class<?> testClass)
static ByteCodeFramework
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ByteCodeFramework[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Javassist
public static final ByteCodeFramework Javassist
-
-
Method Detail
-
values
public static ByteCodeFramework[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteCodeFramework c : ByteCodeFramework.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteCodeFramework valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getByteCodeFrameworkForMethod
public static ByteCodeFramework getByteCodeFrameworkForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method method)
-
getByteCodeFrameworkForTestClass
public static ByteCodeFramework getByteCodeFrameworkForTestClass(java.lang.Class<?> testClass)
-
getByteCodeFramework
private static ByteCodeFramework getByteCodeFramework(java.lang.reflect.AnnotatedElement element)
-
createClassloader
abstract MockClassLoader createClassloader(MockClassLoaderConfiguration configuration, UseClassPathAdjuster useClassPathAdjuster)
-
createTransformerChainFactory
abstract MockTransformerChainFactory createTransformerChainFactory()
-
-