InternalCompiler Renamed To AbstractCompiler

This commit is contained in:
Konloch 2024-10-02 04:47:48 -06:00
parent efcbfc4cbb
commit 88b9844f09

AI 샘플 코드 생성 중입니다

Loading...
6 changed files with 14 additions and 14 deletions

View File

@ -23,7 +23,7 @@ import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode;
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
import the.bytecode.club.bytecodeviewer.compilers.Compiler;
import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler;
import the.bytecode.club.bytecodeviewer.compilers.AbstractCompiler;
import the.bytecode.club.bytecodeviewer.decompilers.Decompiler;
import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler;
import the.bytecode.club.bytecodeviewer.plugin.preinstalled.EZInjection;
@ -439,7 +439,7 @@ public class BCV
*
* @return The wrapped Java Compiler instance
*/
public static InternalCompiler getJavaCompiler()
public static AbstractCompiler getJavaCompiler()
{
return Compiler.JAVA_COMPILER.getCompiler();
}
@ -449,7 +449,7 @@ public class BCV
*
* @return The wrapped Krakatau Assembler instance
*/
public static InternalCompiler getKrakatauCompiler()
public static AbstractCompiler getKrakatauCompiler()
{
return Compiler.KRAKATAU_ASSEMBLER.getCompiler();
}
@ -459,7 +459,7 @@ public class BCV
*
* @return The wrapped Smali Assembler instance
*/
public static InternalCompiler getSmaliCompiler()
public static AbstractCompiler getSmaliCompiler()
{
return Compiler.SMALI_ASSEMBLER.getCompiler();
}

View File

@ -24,7 +24,7 @@ package the.bytecode.club.bytecodeviewer.compilers;
* @author Konloch
*/
public abstract class InternalCompiler
public abstract class AbstractCompiler
{
public abstract byte[] compile(String contents, String fullyQualifiedName);
}

View File

@ -33,14 +33,14 @@ public enum Compiler
SMALI_ASSEMBLER(new SmaliAssembler()),
JAVA_COMPILER(new JavaCompiler());
private final InternalCompiler compiler;
private final AbstractCompiler compiler;
Compiler(InternalCompiler compiler)
Compiler(AbstractCompiler compiler)
{
this.compiler = compiler;
}
public InternalCompiler getCompiler()
public AbstractCompiler getCompiler()
{
return compiler;
}

View File

@ -21,7 +21,7 @@ package the.bytecode.club.bytecodeviewer.compilers.impl;
import me.konloch.kontainer.io.DiskWriter;
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
import the.bytecode.club.bytecodeviewer.Configuration;
import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler;
import the.bytecode.club.bytecodeviewer.compilers.AbstractCompiler;
import the.bytecode.club.bytecodeviewer.resources.ExternalResources;
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
import the.bytecode.club.bytecodeviewer.util.JarUtils;
@ -38,7 +38,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.*;
* @author Konloch
*/
public class JavaCompiler extends InternalCompiler
public class JavaCompiler extends AbstractCompiler
{
@Override
public byte[] compile(String contents, String fullyQualifiedName)

View File

@ -24,7 +24,7 @@ import org.apache.commons.lang3.ArrayUtils;
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
import the.bytecode.club.bytecodeviewer.Configuration;
import the.bytecode.club.bytecodeviewer.Constants;
import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler;
import the.bytecode.club.bytecodeviewer.compilers.AbstractCompiler;
import the.bytecode.club.bytecodeviewer.resources.ExternalResources;
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
import the.bytecode.club.bytecodeviewer.util.JarUtils;
@ -43,7 +43,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.*;
*
* @author Konloch
*/
public class KrakatauAssembler extends InternalCompiler
public class KrakatauAssembler extends AbstractCompiler
{
@Override
public byte[] compile(String contents, String fullyQualifiedName)

View File

@ -21,7 +21,7 @@ package the.bytecode.club.bytecodeviewer.compilers.impl;
import me.konloch.kontainer.io.DiskWriter;
import org.apache.commons.io.FileUtils;
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler;
import the.bytecode.club.bytecodeviewer.compilers.AbstractCompiler;
import the.bytecode.club.bytecodeviewer.util.Dex2Jar;
import the.bytecode.club.bytecodeviewer.util.Enjarify;
import the.bytecode.club.bytecodeviewer.util.MiscUtils;
@ -39,7 +39,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.TEMP_DIRECTORY;
* @author Konloch
*/
public class SmaliAssembler extends InternalCompiler
public class SmaliAssembler extends AbstractCompiler
{
@Override
public byte[] compile(String contents, String fullyQualifiedName)