public class Javac2
extends Javac
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_INSTRUMENTATION_INCLUDE_JAVA_RUNTIME |
Constructor and Description |
---|
Javac2() |
Modifier and Type | Method and Description |
---|---|
void |
add(ClassFilterAnnotationRegexp regexp)
Allows to specify patterns of annotation class names to skip NotNull instrumentation on classes which have at least one
annotation matching at least one of the given patterns
|
protected boolean |
areJavaClassesCompiled()
Check if Java classes should be actually compiled by the task.
|
protected void |
compile()
The overridden compile method that does not actually compiles java sources but only instruments
class files.
|
PrefixedPath |
createNestedformdirs()
Adds a path to nested form directories.
|
boolean |
getInstrumentNotNull() |
java.util.List |
getNestedformdirs()
Gets the nested form directories that will be used during the
compilation.
|
java.lang.String |
getNotNullAnnotations() |
protected void |
resetFileLists() |
protected void |
scanDir(java.io.File srcDir,
java.io.File destDir,
java.lang.String[] files) |
void |
setCompiler(java.lang.String compiler)
The overridden setter method that warns about unsupported option.
|
void |
setDebugLevel(java.lang.String v)
The overridden setter method that warns about unsupported option.
|
void |
setDepend(boolean depend)
The overridden setter method that warns about unsupported option.
|
void |
setEncoding(java.lang.String encoding)
The overridden setter method that warns about unsupported option.
|
void |
setExecutable(java.lang.String forkExec)
The overridden setter method that warns about unsupported option.
|
void |
setFork(boolean f)
The overridden setter method that warns about unsupported option.
|
void |
setInstrumentNotNull(boolean instrumentNotNull) |
void |
setListfiles(boolean list)
The overridden setter method that warns about unsupported option.
|
void |
setMemoryInitialSize(java.lang.String memoryInitialSize)
The overridden setter method that warns about unsupported option.
|
void |
setMemoryMaximumSize(java.lang.String memoryMaximumSize)
The overridden setter method that warns about unsupported option.
|
void |
setNestedformdirs(java.util.List nestedformdirs)
Sets the nested form directories that will be used during the
compilation.
|
void |
setNotNullAnnotations(java.lang.String notNullAnnotations) |
void |
setOptimize(boolean optimize)
The overridden setter method that warns about unsupported option.
|
public static final java.lang.String PROPERTY_INSTRUMENTATION_INCLUDE_JAVA_RUNTIME
protected boolean areJavaClassesCompiled()
InstrumentIdeaExtensions
task in order to suppress actual compilation
of the java sources.public boolean getInstrumentNotNull()
public void setInstrumentNotNull(boolean instrumentNotNull)
public java.lang.String getNotNullAnnotations()
"org.jetbrains.annotations.NotNull;javax.annotation.Nonnull"
public void setNotNullAnnotations(java.lang.String notNullAnnotations)
notNullAnnotations
- semicolon-separated names of not-null annotations to be instrumented. Example: "org.jetbrains.annotations.NotNull;javax.annotation.Nonnull"
public void add(ClassFilterAnnotationRegexp regexp)
regexp
- the regular expression for JVM internal name (slash-separated) of annotationspublic void setDebugLevel(java.lang.String v)
v
- the option valuepublic void setListfiles(boolean list)
list
- the option valuepublic void setMemoryInitialSize(java.lang.String memoryInitialSize)
memoryInitialSize
- the option valuepublic void setMemoryMaximumSize(java.lang.String memoryMaximumSize)
memoryMaximumSize
- the option valuepublic void setEncoding(java.lang.String encoding)
encoding
- the option valuepublic void setOptimize(boolean optimize)
optimize
- the option valuepublic void setDepend(boolean depend)
depend
- the option valuepublic void setFork(boolean f)
f
- the option valuepublic void setExecutable(java.lang.String forkExec)
forkExec
- the option valuepublic void setCompiler(java.lang.String compiler)
compiler
- the option valuepublic void setNestedformdirs(java.util.List nestedformdirs)
nestedformdirs
- a list of PrefixedPath
public java.util.List getNestedformdirs()
PrefixedPath
public PrefixedPath createNestedformdirs()
protected void compile()
protected void resetFileLists()
protected void scanDir(java.io.File srcDir, java.io.File destDir, java.lang.String[] files)