Class Sandbox


  • public class Sandbox
    extends java.lang.Object
    • Field Detail

      • logger

        private static final com.chrisnewland.freelogj.Logger logger
      • SANDBOX_DIR

        public static final java.nio.file.Path SANDBOX_DIR
      • SANDBOX_SOURCE_DIR

        public static final java.nio.file.Path SANDBOX_SOURCE_DIR
      • SANDBOX_CLASS_DIR

        public static final java.nio.file.Path SANDBOX_CLASS_DIR
      • PATH_STD_ERR

        public static final java.nio.file.Path PATH_STD_ERR
      • PATH_STD_OUT

        public static final java.nio.file.Path PATH_STD_OUT
      • sandboxLogFile

        private java.io.File sandboxLogFile
    • Method Detail

      • initialise

        private static void initialise()
      • reset

        public void reset()
      • copyExamples

        private static void copyExamples()
      • runSandbox

        public void runSandbox​(java.lang.String language,
                               java.util.List<java.io.File> compileList,
                               java.io.File fileToRun)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • buildUniqueClasspath

        private java.util.List<java.lang.String> buildUniqueClasspath​(JITWatchConfig config)
      • executeClass

        private boolean executeClass​(java.lang.String fqClassName,
                                     IRuntime runtime,
                                     boolean intelMode)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runJITWatch

        private void runJITWatch()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • showTriView

        private void showTriView​(java.lang.String language,
                                 java.lang.String openClassInTriView)