Package net.bytebuddy.dynamic.scaffold
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
A dispatcher for dumping class files to the file system. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
The type's binary representation.private final TypeDescription
The instrumented type.private static final Void
Indicates that nothing is returned from this action.private final boolean
true
if the dumped class file is an input to a class transformation.private final long
The suffix to append to the dumped class file.private final String
The target folder for writing the class file to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ClassDumpAction
(String target, TypeDescription instrumentedType, boolean original, long suffix, byte[] binaryRepresentation) Creates a new class dump action. -
Method Summary
-
Field Details
-
NOTHING
Indicates that nothing is returned from this action. -
target
The target folder for writing the class file to. -
instrumentedType
The instrumented type. -
original
private final boolean originaltrue
if the dumped class file is an input to a class transformation. -
suffix
private final long suffixThe suffix to append to the dumped class file. -
binaryRepresentation
private final byte[] binaryRepresentationThe 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
-
run
- Specified by:
run
in interfacePrivilegedExceptionAction<Void>
- Throws:
Exception
-