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 interfaceTypeWriter.Default.ClassDumpAction.DispatcherA dispatcher for dumping class files to the file system.
-
Field Summary
Fields Modifier and Type Field Description private byte[]binaryRepresentationThe type's binary representation.private TypeDescriptioninstrumentedTypeThe instrumented type.private static java.lang.VoidNOTHINGIndicates that nothing is returned from this action.private booleanoriginaltrueif the dumped class file is an input to a class transformation.private longsuffixThe suffix to append to the dumped class file.private java.lang.StringtargetThe target folder for writing the class file to.
-
Constructor Summary
Constructors Modifier Constructor Description protectedClassDumpAction(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.Voidrun()
-
-
-
Field Detail
-
NOTHING
@AlwaysNull 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
trueif 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-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.
-
-