Package org.jrd.frontend.utility
Class CommonUtils
java.lang.Object
org.jrd.frontend.utility.CommonUtils
Class with utility methods common for both CLI and GUI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
guessClass
(String src) static boolean
saveByGui
(String fileNameBase, int naming, String suffix, CommonUtils.StatusKeeper status, String clazz, byte[] content) static io.github.mkoncek.classpathless.api.IdentifiedSource[]
toIdentifiedSources
(boolean recursive, String... sources) static io.github.mkoncek.classpathless.api.IdentifiedSource[]
toIdentifiedSources
(boolean recursive, List<File> sources) static boolean
uploadByGui
(VmInfo vmInfo, VmManager vmManager, CommonUtils.StatusKeeper status, String clazz, byte[] content) static String
uploadBytecode
(String clazz, VmManager vmManager, VmInfo vmInfo, byte[] bytes)
-
Field Details
-
FULLY_QUALIFIED_NAME
public static final int FULLY_QUALIFIED_NAME- See Also:
-
SRC_SUBDIRS_NAME
public static final int SRC_SUBDIRS_NAME- See Also:
-
CUSTOM_NAME
public static final int CUSTOM_NAME- See Also:
-
-
Constructor Details
-
CommonUtils
private CommonUtils()
-
-
Method Details
-
saveByGui
public static boolean saveByGui(String fileNameBase, int naming, String suffix, CommonUtils.StatusKeeper status, String clazz, byte[] content) -
uploadByGui
public static boolean uploadByGui(VmInfo vmInfo, VmManager vmManager, CommonUtils.StatusKeeper status, String clazz, byte[] content) -
cheatName
-
uploadBytecode
-
guessClass
- Throws:
IOException
-
toIdentifiedSources
public static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources(boolean recursive, List<File> sources) throws IOException - Throws:
IOException
-
toIdentifiedSources
public static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources(boolean recursive, String... sources) throws IOException - Throws:
IOException
-