Class Utils


  • public class Utils
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Utils.StatusKeeper  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FULLY_QUALIFIED_NAME

        public static int FULLY_QUALIFIED_NAME
      • SRC_SUBDIRS_NAME

        public static int SRC_SUBDIRS_NAME
      • CUSTOM_NAME

        public static int CUSTOM_NAME
    • Constructor Detail

      • Utils

        public Utils()
    • 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)
      • 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