Package org.powermock.core.transformers
Interface ClassWrapper<T>
- Type Parameters:
T
- - original class specific for byte-code modification framework.
- All Known Implementing Classes:
JavaAssistClassWrapperFactory.JavaAssistClassWrapper
public interface ClassWrapper<T>
An interface represents an abstraction of the class to be able to pass class to different byte-code instrumentation frameworks.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if class is interfaceunwrap()
Get original object which represent classWrap changed implementation to get a new instance of ClassWrapper
-
Method Details
-
isInterface
boolean isInterface()Check if class is interface- Returns:
true
if class is an interface.
-
unwrap
T unwrap()Get original object which represent class- Returns:
- instance of original object.
-
wrap
Wrap changed implementation to get a new instance of ClassWrapper- Parameters:
original
- - original class specific for byte-code modification framework.- Returns:
- a new instance of ClassWrapper
-