接口 CompilationStrategy

所有已知实现类:
DefaultCompilationStrategy, IncrementalCompilationStrategy

public interface CompilationStrategy
This strategy is used to decide what to compile
  • 方法详细资料

    • getJavaFileObjectsToCompile

      List<JavaFileObject> getJavaFileObjectsToCompile(String simpleClassName, String currentSource)
      Generate a list of JavaFileObject to compile
      参数:
      simpleClassName - the class name of the script
      currentSource - The current source script we want to execute
      返回:
    • compilationResult

      default void compilationResult(Class<?> clazz)
      As the script is compiled, this is an opportunity to see if we still want to keep it.
      参数:
      clazz -