Package org.jrd.frontend
Class Utils
- java.lang.Object
-
- org.jrd.frontend.Utils
-
public class Utils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUtils.StatusKeeper
-
Field Summary
Fields Modifier and Type Field Description static intCUSTOM_NAMEstatic intFULLY_QUALIFIED_NAMEstatic intSRC_SUBDIRS_NAME
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcheatName(String base, int selectedIndex, String suffix, String fullyClasifiedName)static StringguessClass(String src)static booleansaveByGui(String fileNameBase, int naming, String suffix, Utils.StatusKeeper status, String clazz, byte[] content)static io.github.mkoncek.classpathless.api.IdentifiedSource[]sourcesToIdentifiedSources(boolean recursive, String... srcs)static io.github.mkoncek.classpathless.api.IdentifiedSource[]sourcesToIdentifiedSources(boolean recursive, List<File> srcs)static booleanuploadByGui(VmInfo vmInfo, VmManager vmManager, Utils.StatusKeeper status, String clazz, byte[] content)static StringuploadBytecode(String clazz, VmManager vmManager, VmInfo vmInfo, byte[] bytes)
-
-
-
Method Detail
-
saveByGui
public static boolean saveByGui(String fileNameBase, int naming, String suffix, Utils.StatusKeeper status, String clazz, byte[] content)
-
uploadByGui
public static boolean uploadByGui(VmInfo vmInfo, VmManager vmManager, Utils.StatusKeeper status, String clazz, byte[] content)
-
cheatName
public static String cheatName(String base, int selectedIndex, String suffix, String fullyClasifiedName)
-
uploadBytecode
public static String uploadBytecode(String clazz, VmManager vmManager, VmInfo vmInfo, byte[] bytes)
-
guessClass
public static String guessClass(String src) throws IOException
- Throws:
IOException
-
sourcesToIdentifiedSources
public static io.github.mkoncek.classpathless.api.IdentifiedSource[] sourcesToIdentifiedSources(boolean recursive, List<File> srcs) throws IOException- Throws:
IOException
-
sourcesToIdentifiedSources
public static io.github.mkoncek.classpathless.api.IdentifiedSource[] sourcesToIdentifiedSources(boolean recursive, String... srcs) throws IOException- Throws:
IOException
-
-