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 interfaceA dispatcher for dumping class files to the file system. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The type's binary representation.private final TypeDescriptionThe instrumented type.private static final VoidIndicates that nothing is returned from this action.private final booleantrueif the dumped class file is an input to a class transformation.private final longThe suffix to append to the dumped class file.private final StringThe target folder for writing the class file to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClassDumpAction(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 originaltrueif 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-trueif 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:
runin interfacePrivilegedExceptionAction<Void>- Throws:
Exception
-