public class CheckerFrameworkPluginExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TASK_EXTENSION_NAME |
| Constructor and Description |
|---|
CheckerFrameworkPluginExtension(org.gradle.api.Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChecker(java.lang.String newChecker)
Add a new typechecker to the list of checkers that should be executed.
|
void |
addTask(java.lang.String taskName)
Adds a task to the list of tasks that the Checker Framework
will be executed as part of.
|
<T extends org.gradle.api.tasks.compile.JavaCompile> |
applyTo(T task)
Applies the Checker Framework to the given task.
|
<T extends org.gradle.api.tasks.compile.JavaCompile> |
applyTo(org.gradle.api.tasks.TaskCollection<T> tasks)
Applies the Checker Framework to all of the given tasks.
|
public static final java.lang.String TASK_EXTENSION_NAME
public CheckerFrameworkPluginExtension(org.gradle.api.Project project)
public void addTask(java.lang.String taskName)
taskName - the name of the task to modifypublic void addChecker(java.lang.String newChecker)
newChecker - the fully-qualified name of the new typechecker,
e.g. "org.checkerframework.checker.index.IndexChecker".public <T extends org.gradle.api.tasks.compile.JavaCompile> void applyTo(T task)
task - the task to apply the CF to.TASK_EXTENSION_NAMEpublic <T extends org.gradle.api.tasks.compile.JavaCompile> void applyTo(org.gradle.api.tasks.TaskCollection<T> tasks)
tasks - the tasks to apply the CF to