Package net.bytebuddy.dynamic.scaffold
Class TypeWriter.Default.ClassDumpAction
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ClassDumpAction
-
- All Implemented Interfaces:
java.security.PrivilegedExceptionAction<java.lang.Void>
- Enclosing class:
- TypeWriter.Default<S>
@Enhance protected static class TypeWriter.Default.ClassDumpAction extends java.lang.Object implements java.security.PrivilegedExceptionAction<java.lang.Void>
An action to write a class file to the dumping location.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
TypeWriter.Default.ClassDumpAction.Dispatcher
A dispatcher for dumping class files to the file system.
-
Field Summary
Fields Modifier and Type Field Description private byte[]
binaryRepresentation
The type's binary representation.private TypeDescription
instrumentedType
The instrumented type.private static java.lang.Void
NOTHING
Indicates that nothing is returned from this action.private boolean
original
true
if the dumped class file is an input to a class transformation.private long
suffix
The suffix to append to the dumped class file.private java.lang.String
target
The target folder for writing the class file to.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClassDumpAction(java.lang.String target, TypeDescription instrumentedType, boolean original, long suffix, byte[] binaryRepresentation)
Creates a new class dump action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
run()
-
-
-
Field Detail
-
NOTHING
private static final java.lang.Void NOTHING
Indicates that nothing is returned from this action.
-
target
private final java.lang.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 Detail
-
ClassDumpAction
protected ClassDumpAction(java.lang.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.
-
-