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