Class TypeWriter.Default.ClassDumpAction

java.lang.Object
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ClassDumpAction
All Implemented Interfaces:
PrivilegedExceptionAction<Void>
Enclosing class:
TypeWriter.Default<S>

@Enhance protected static class TypeWriter.Default.ClassDumpAction extends Object implements PrivilegedExceptionAction<Void>
An action to write a class file to the dumping location.
  • Field Details

    • NOTHING

      @AlwaysNull private static final Void NOTHING
      Indicates that nothing is returned from this action.
    • target

      private final String target
      The target folder for writing the class file to.
    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
    • original

      private final boolean original
      true if the dumped class file is an input to a class transformation.
    • suffix

      private final long suffix
      The suffix to append to the dumped class file.
    • binaryRepresentation

      private final byte[] binaryRepresentation
      The type's binary representation.
  • Constructor Details

    • ClassDumpAction

      protected ClassDumpAction(String target, TypeDescription instrumentedType, boolean original, long suffix, byte[] binaryRepresentation)
      Creates a new class dump action.
      Parameters:
      target - The target folder for writing the class file to.
      instrumentedType - The instrumented type.
      original - true if the dumped class file is an input to a class transformation.
      suffix - The suffix to append to the dumped class file.
      binaryRepresentation - The type's binary representation.
  • Method Details