接口 CompilationStrategy
public interface CompilationStrategy
This strategy is used to decide what to compile
-
方法概要
修饰符和类型方法说明default voidcompilationResult(Class<?> clazz) As the script is compiled, this is an opportunity to see if we still want to keep it.getJavaFileObjectsToCompile(String simpleClassName, String currentSource) Generate a list of JavaFileObject to compile
-
方法详细资料
-
getJavaFileObjectsToCompile
Generate a list of JavaFileObject to compile- 参数:
simpleClassName- the class name of the scriptcurrentSource- The current source script we want to execute- 返回:
-
compilationResult
As the script is compiled, this is an opportunity to see if we still want to keep it.- 参数:
clazz-
-