Package rife.bld.operations
Class JavacOptions
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,List<String>,RandomAccess
Options for the standard javac tool.
- Since:
- 1.5.18
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExports(String... modules) Specifies a package to be considered as exported from its defining module to additional modules or to all unnamed modules when the value of other-module is ALL-UNNAMEDaddExports(List<String> modules) Specifies a package to be considered as exported from its defining module to additional modules or to all unnamed modules when the value of other-module is ALL-UNNAMEDaddModules(String... modules) Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATHaddModules(List<String> modules) Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATHSpecifies additional modules to be considered as required by a given moduleSpecifies additional modules to be considered as required by a given moduleannotationOption(String key, String value) Option to pass to annotation processorsbooleanIndicates whether the Java SE release was setGenerate debugging infodefaultModuleForCreatedFiles(String module) Fallback target module for files created by annotation processors, if none specified or inferredOutput source locations where deprecated APIs are usedEnable preview language features.Specify character encoding used by source filesendorsedDirs(File... dirs) Override location of endorsed standards pathendorsedDirs(String... dirs) Override location of endorsed standards pathendorsedDirs(Path... dirs) Override location of endorsed standards pathendorsedDirs(List<File> dirs) Override location of endorsed standards pathendorsedDirsPaths(List<Path> dirs) Override location of endorsed standards pathendorsedDirsStrings(List<String> dirs) Override location of endorsed standards pathOverride location of installed extensionsOverride location of installed extensionsOverride location of installed extensionsOverride location of installed extensionsextDirsPaths(List<Path> dirs) Override location of installed extensionsextDirsStrings(List<String> dirs) Override location of installed extensionsimplicit(JavacOptions.Implicit option) Specify whether or not to generate class files for implicitly referenced fileslimitModules(String... modules) Limit the universe of observable moduleslimitModules(List<String> modules) Limit the universe of observable modulesCompile only the specified module(s), check timestampsCompile only the specified module(s), check timestampsmodulePath(File... paths) Specify where to find application modulesmodulePath(String... paths) Specify where to find application modulesmodulePath(Path... paths) Specify where to find application modulesmodulePath(List<File> paths) Specify where to find application modulesmodulePathPaths(List<Path> paths) Specify where to find application modulesmodulePathStrings(List<String> paths) Specify where to find application modulesmoduleSourcePath(File path) Specify where to find input source files for multiple modulesmoduleSourcePath(String path) Specify where to find input source files for multiple modulesmoduleSourcePath(Path path) Specify where to find input source files for multiple modulesmoduleVersion(String version) Specify version of modules that are being compilednativeHeaders(File path) Specify where to place generated native header filesnativeHeaders(String path) Specify where to place generated native header filesnativeHeaders(Path path) Specify where to place generated native header filesnoWarn()Generate no warningsGenerate metadata for reflection on method parameterspatchModule(String module) Overrides or augments a module with classes and resources in JAR files or directoriesprocess(JavacOptions.Processing option) Control whether annotation processing and/or compilation is doneprocessorModulePath(File path) Specify a module path where to find annotation processorsprocessorModulePath(String path) Specify a module path where to find annotation processorsprocessorModulePath(Path path) Specify a module path where to find annotation processorsprocessorPath(File path) Specify where to find annotation processorsprocessorPath(String path) Specify where to find annotation processorsprocessorPath(Path path) Specify where to find annotation processorsprocessors(String... classnames) Names of the annotation processors to run; bypasses default discovery processprocessors(List<String> classnames) Names of the annotation processors to run; bypasses default discovery processCheck that API used is available in the specified profilerelease(int version) Compile for the specified Java SE releasesource(int version) Provide source compatibility with the specified Java SE releasesourceOutput(File path) Specify the directory used to place the generated source files.sourceOutput(String path) Specify the directory used to place the generated source files.sourceOutput(Path path) Specify the directory used to place the generated source files.Override location of system modules.target(int version) Generate class files suitable for the specified Java SE releaseupgradeModulePath(File path) Override location of upgradeable modulesupgradeModulePath(String path) Override location of upgradeable modulesupgradeModulePath(Path path) Override location of upgradeable modulesTerminate compilation if warnings occurxLint()Enable recommended warning categoriesxLint(List<JavacOptions.XLintKey> keys) Warning categories to enablexLint(JavacOptions.XLintKey... keys) Warning categories to enableWarning categories to disablexLintDisable(JavacOptions.XLintKey... keys) Warning categories to disableMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
JavacOptions
public JavacOptions()
-
-
Method Details
-
annotationOption
Option to pass to annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
addExports
Specifies a package to be considered as exported from its defining module to additional modules or to all unnamed modules when the value of other-module is ALL-UNNAMED- Returns:
- this list of options
- Since:
- 2.3.1
-
addExports
Specifies a package to be considered as exported from its defining module to additional modules or to all unnamed modules when the value of other-module is ALL-UNNAMED- Returns:
- this list of options
- Since:
- 2.3.1
-
addReads
Specifies additional modules to be considered as required by a given module- Returns:
- this list of options
- Since:
- 2.3.1
-
addReads
Specifies additional modules to be considered as required by a given module- Returns:
- this list of options
- Since:
- 2.3.1
-
addModules
Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH- Returns:
- this list of options
- Since:
- 1.5.18
-
addModules
Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH- Returns:
- this list of options
- Since:
- 1.5.18
-
encoding
Specify character encoding used by source files- Returns:
- this list of options
- Since:
- 1.5.18
-
defaultModuleForCreatedFiles
Fallback target module for files created by annotation processors, if none specified or inferred- Returns:
- this list of options
- Since:
- 2.3.1
-
deprecation
Output source locations where deprecated APIs are used- Returns:
- this list of options
- Since:
- 1.5.18
-
enablePreview
Enable preview language features. To be used in conjunction withrelease(int)- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirsPaths
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirsStrings
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 1.5.18
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 1.5.18
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirsPaths
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirsStrings
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
containsRelease
public boolean containsRelease()Indicates whether the Java SE release was set- Returns:
trueif the release was set; orfalseotherwise- Since:
- 1.5.18
-
patchModule
Overrides or augments a module with classes and resources in JAR files or directories- Returns:
- this list of options
- Since:
- 2.3.1
-
release
Compile for the specified Java SE release- Returns:
- this list of options
- Since:
- 1.5.18
-
source
Provide source compatibility with the specified Java SE release- Returns:
- this list of options
- Since:
- 2.3.1
-
target
Generate class files suitable for the specified Java SE release- Returns:
- this list of options
- Since:
- 2.3.1
-
debuggingInfo
Generate debugging info- Returns:
- this list of options
- Since:
- 1.5.18
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 1.5.18
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 2.1
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 2.1
-
implicit
Specify whether or not to generate class files for implicitly referenced files- Returns:
- this list of options
- Since:
- 1.5.18
-
limitModules
Limit the universe of observable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
limitModules
Limit the universe of observable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
module
Compile only the specified module(s), check timestamps- Returns:
- this list of options
- Since:
- 1.5.18
-
module
Compile only the specified module(s), check timestamps- Returns:
- this list of options
- Since:
- 1.5.18
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 1.5.18
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 1.6.2
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePathPaths
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePathStrings
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 1.5.18
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleVersion
Specify version of modules that are being compiled- Returns:
- this list of options
- Since:
- 1.5.18
-
noWarn
Generate no warnings- Returns:
- this list of options
- Since:
- 1.5.18
-
parameters
Generate metadata for reflection on method parameters- Returns:
- this list of options
- Since:
- 1.5.18
-
process
Control whether annotation processing and/or compilation is done- Returns:
- this list of options
- Since:
- 1.5.18
-
processors
Names of the annotation processors to run; bypasses default discovery process- Returns:
- this list of options
- Since:
- 1.5.18
-
processors
Names of the annotation processors to run; bypasses default discovery process- Returns:
- this list of options
- Since:
- 1.5.18
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
profile
Check that API used is available in the specified profile- Returns:
- this list of options
- Since:
- 1.5.18
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
system
Override location of system modules. Option is <jdk> or none.- Returns:
- this list of options
- Since:
- 1.5.18
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 2.1
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 2.1
-
warningError
Terminate compilation if warnings occur- Returns:
- this list of options
- Since:
- 1.5.18
-
xLint
Enable recommended warning categories- Returns:
- this list of options
- Since:
- 2.3.1
-
xLint
Warning categories to enable- Returns:
- this list of options
- Since:
- 2.3.1
-
xLint
Warning categories to enable- Returns:
- this list of options
- Since:
- 2.3.1
-
xLintDisable
Warning categories to disable- Returns:
- this list of options
- Since:
- 2.3.1
-
xLintDisable
Warning categories to disable- Returns:
- this list of options
- Since:
- 2.3.1
-