Interface SimpleTransformationContext

All Known Implementing Classes:
ClassProcessor.TransformationContext

public interface SimpleTransformationContext
Contextual information for transformations implemented by SimpleClassProcessor, SimpleMethodProcessor or SimpleFieldProcessor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the class does not exist and the given node is currently empty.
    byte[]
    Returns SHA-256 hash of the original untransformed class bytecode.
    Returns the class being transformed.
  • Method Details

    • type

      Type type()
      Returns the class being transformed.
      Returns:
      the class being transformed
    • empty

      boolean empty()
      Returns true if the class does not exist and the given node is currently empty.

      This is only relevant for processors targeting classes, since method and field processors will never be invoked for classes that don't exist.

      Returns:
      true if the class does not exist and the given node is currently empty
    • initialSha256

      byte[] initialSha256()
      Returns SHA-256 hash of the original untransformed class bytecode.
      Returns:
      SHA-256 hash of the original untransformed class bytecode