public class JDKToolsWrapper
extends java.lang.Object
Constructor and Description |
---|
JDKToolsWrapper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,byte[]> |
compile(java.lang.String source,
java.lang.String javacOptions,
java.nio.file.Path outputPath) |
static java.lang.String |
javap(byte[] classBytes)
Given the bytes of a class file, this tool reconstructs which javac -g option was used when compiling the class
See: http://www.herongyang.com/Java-Tools/javac-g-Controlling-Debugging-Information.html
See: https://www.javaworld.com/article/2073963/core-java/determining-level-of-java-debug-in-class-file-via-javap.html
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args)
public static java.util.Map<java.lang.String,byte[]> compile(java.lang.String source, java.lang.String javacOptions, java.nio.file.Path outputPath)
public static java.lang.String javap(byte[] classBytes)
classBytes
- the byte array representing the class bytes