Class InMemoryJavaCompiler


  • public class InMemoryJavaCompiler
    extends java.lang.Object
    Created by trung on 5/3/15. https://github.com/trung/InMemoryJavaCompiler Apache 2 License
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static javax.tools.JavaCompiler javac  
      protected static org.apache.logging.log4j.Logger LOG  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> compile​(java.lang.String className, java.lang.String sourceCodeStr)  
      • Methods inherited from class java.lang.Object

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

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
      • javac

        protected static javax.tools.JavaCompiler javac
    • Constructor Detail

      • InMemoryJavaCompiler

        public InMemoryJavaCompiler()
    • Method Detail

      • compile

        public static java.lang.Class<?> compile​(java.lang.String className,
                                                 java.lang.String sourceCodeStr)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception