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 Type
    Method
    Description
    boolean
    Check if class is interface
    Get original object which represent class
    wrap(T original)
    Wrap 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

      ClassWrapper<T> wrap(T original)
      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