From 2d80244e1f7d00db0a953b1696f779d2684e89cf Mon Sep 17 00:00:00 2001 From: Konloch Date: Sat, 26 Jun 2021 07:37:41 -0700 Subject: [PATCH] Add Java Compiler to the API --- .../bytecode/club/bytecodeviewer/api/BytecodeViewer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java index 4babf2f0..1552858a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java @@ -260,6 +260,15 @@ public class BytecodeViewer { return Decompiler.JADX.getDecompiler(); } + /** + * Returns the wrapped Java Compiler instance. + * + * @return The wrapped Java Compiler instance + */ + public static InternalCompiler getJavaCompiler() { + return Compiler.JAVA_COMPILER.getCompiler(); + } + /** * Returns the wrapped Krakatau Assembler instance. *