@HashCodeAndEqualsPlugin.Enhance protected static class TypeWriter.Default.ClassDumpAction extends java.lang.Object implements java.security.PrivilegedExceptionAction<java.lang.Void>
Modifier and Type | Field and 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 java.lang.String |
target
The target folder for writing the class file to.
|
Modifier | Constructor and Description |
---|---|
protected |
ClassDumpAction(java.lang.String target,
TypeDescription instrumentedType,
boolean original,
byte[] binaryRepresentation)
Creates a new class dump action.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
dump(java.lang.String dumpFolder,
TypeDescription instrumentedType,
boolean original,
byte[] binaryRepresentation)
Dumps the instrumented type if a
TypeWriter.Default.DUMP_FOLDER is configured. |
java.lang.Void |
run() |
private static final java.lang.Void NOTHING
private final java.lang.String target
private final TypeDescription instrumentedType
private final boolean original
true
if the dumped class file is an input to a class transformation.private final byte[] binaryRepresentation
protected ClassDumpAction(java.lang.String target, TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation)
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.binaryRepresentation
- The type's binary representation.protected static void dump(java.lang.String dumpFolder, TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation)
TypeWriter.Default.DUMP_FOLDER
is configured.dumpFolder
- The dump folder.instrumentedType
- The instrumented type.original
- true
if the dumped class file is an input to a class transformation.binaryRepresentation
- The binary representation.public java.lang.Void run() throws java.lang.Exception
run
in interface java.security.PrivilegedExceptionAction<java.lang.Void>
java.lang.Exception