private JavacEnvironment createEnvironment ( String path , String source ) throws IOException { List < JavaFileObject > inputFiles = new ArrayList <> ( ) ; inputFiles . add ( filterJavaFileObject ( MemoryFileObject . createJavaFile ( path , source ) ) ) ; return createEnvironment ( Collections . emptyList ( ) , inputFiles , false ) ; }
Creates a javac environment from a memory source .