| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final OptionHelper | |
| public static final Context. | argsKey
The context key for the arguments. |
| private Set | |
| private final OptionHelper | |
| private final Context | |
| private Map | |
| private boolean | |
| private Arguments. | |
| private boolean | |
| private JavaFileManager | |
| private Set | |
| private Set | |
| private final Log | |
| private final Options | |
| private String |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | |
| pack-priv void | |
| private boolean | doProcessArgs(Iterable<String> args, Set<Option> allowableOpts, OptionHelper helper, boolean allowOperands, boolean checkFileManager)
|
| pack-priv void | |
| public Set | Returns: the classes to be subject to annotation processingGets the classes to be subject to annotation processing. |
| public Map | Returns: the deferred file manager optionsGets the file manager options which may have been deferred during processArgs. |
| public List | |
| private JavaFileManager | |
| public Set | |
| public Set | |
| public boolean | Returns: true if successful, false otherwisea predicate to handle additional options implied by the
additionalOptions)--release option. The predicate should return true if all the additional
options were processed successfully.Handles the |
| public void | |
| public void | init(String
the name of this tool; used to prefix messages ownName, Iterable<String> the options to be processed options, Iterable<String> the classes to be subject to annotation processing classNames, Iterable<? extends JavaFileObject> the files to be compiled files)Initializes this Args instance with the parameters for a JavacTask. |
| public void | |
| public static Arguments | |
| public boolean | Returns: true if there are no files or classes specified for useReturns true if there are no files or classes specified for use. |
| private boolean | Returns: true if all the strings were successfully processed; false otherwisethe strings to be processed args, Set<Option> the set of option declarations that are applicable allowableOpts, OptionHelper a help for use by Option.process helper, boolean whether or not to check for files and classes allowOperands, boolean whether or not to check if the file manager can handle
options which are not recognized by any of allowableOpts checkFileManager)Processes strings containing options and operands. |
| private JCDiagnostic. | |
| private void | |
| pack-priv void | |
| pack-priv <T> ListBuffer | |
| pack-priv <T> Set | |
| public boolean | Returns: true if all args are successfully validated; false otherwise.Validates the overall consistency of the options and operands processed by processOptions. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| apiHelper | back to summary |
|---|---|
| private final OptionHelper apiHelper | |
| argsKey | back to summary |
|---|---|
| public static final Context. The context key for the arguments. | |
| classNames | back to summary |
|---|---|
| private Set<String> classNames | |
| cmdLineHelper | back to summary |
|---|---|
| private final OptionHelper cmdLineHelper | |
| context | back to summary |
|---|---|
| private final Context context | |
| deferredFileManagerOptions | back to summary |
|---|---|
| private Map<Option, String> deferredFileManagerOptions | |
| emptyAllowed | back to summary |
|---|---|
| private boolean emptyAllowed | |
| errorMode | back to summary |
|---|---|
| private Arguments. | |
| errors | back to summary |
|---|---|
| private boolean errors | |
| fileManager | back to summary |
|---|---|
| private JavaFileManager fileManager | |
| fileObjects | back to summary |
|---|---|
| private Set<JavaFileObject> fileObjects | |
| files | back to summary |
|---|---|
| private Set<Path> files | |
| log | back to summary |
|---|---|
| private final Log log | |
| options | back to summary |
|---|---|
| private final Options options | |
| ownName | back to summary |
|---|---|
| private String ownName | |
| Arguments | back to summary |
|---|---|
protected Arguments(Context context)
| |
| allowEmpty | back to summary |
|---|---|
| public void allowEmpty() | |
| checkDirectory | back to summary |
|---|---|
| private boolean checkDirectory(Option option) | |
| checkOptionAllowed | back to summary |
|---|---|
| pack-priv void checkOptionAllowed(boolean allowed, Arguments. | |
| doProcessArgs | back to summary |
|---|---|
| private boolean doProcessArgs(Iterable<String> args, Set<Option> allowableOpts, OptionHelper helper, boolean allowOperands, boolean checkFileManager) | |
| error | back to summary |
|---|---|
| pack-priv void error(Option. | |
| getClassNames | back to summary |
|---|---|
| public Set Gets the classes to be subject to annotation processing. | |
| getDeferredFileManagerOptions | back to summary |
|---|---|
| public Map Gets the file manager options which may have been deferred during processArgs. | |
| getDocLintOpts | back to summary |
|---|---|
| public List Gets any options specifying how doclint should be run. An empty list is returned if no doclint options are specified or if the only doclint option is -Xdoclint:none. | |
| getFileManager | back to summary |
|---|---|
| private JavaFileManager getFileManager() | |
| getFileObjects | back to summary |
|---|---|
| public Set Gets the files to be compiled.
| |
| getPluginOpts | back to summary |
|---|---|
| public Set Gets any options specifying plugins to be run. | |
| handleReleaseOptions | back to summary |
|---|---|
| public boolean handleReleaseOptions(Predicate<Iterable<String>> additionalOptions) Handles the | |
| init | back to summary |
|---|---|
| public void init(String ownName, Iterable<String> args) Initializes this Args instance with a set of command line args. The args will be processed in conjunction with the full set of command line options, including -help, -version etc. The args may also contain class names and filenames. Any errors during this call, and later during validate, will be reported to the log. | |
| init | back to summary |
|---|---|
| public void init(String ownName, Iterable<String> options, Iterable<String> classNames, Iterable<? extends JavaFileObject> files) Initializes this Args instance with the parameters for a JavacTask. The options will be processed in conjunction with the restricted set of tool options, which does not include -help, -version, etc, nor does it include classes and filenames, which should be specified separately. File manager options are handled directly by the file manager. Any errors found while processing individual args will be reported via IllegalArgumentException. Any subsequent errors during validate will be reported via IllegalStateException. | |
| init | back to summary |
|---|---|
| public void init(String ownName) Minimal initialization for tools, like javadoc, to be able to process javac options for themselves, and then call validate.
| |
| instance | back to summary |
|---|---|
| public static Arguments instance(Context context) Gets the Arguments instance for this context. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns true if there are no files or classes specified for use.
| |
| processArgs | back to summary |
|---|---|
| private boolean processArgs(Iterable<String> args, Set<Option> allowableOpts, OptionHelper helper, boolean allowOperands, boolean checkFileManager) Processes strings containing options and operands.
| |
| releaseNote | back to summary |
|---|---|
| private JCDiagnostic. | |
| report | back to summary |
|---|---|
| private void report(JCDiagnostic. | |
| reportDiag | back to summary |
|---|---|
| pack-priv void reportDiag(JCDiagnostic. | |
| toList | back to summary |
|---|---|
| pack-priv <T> ListBuffer | |
| toSet | back to summary |
|---|---|
| pack-priv <T> Set | |
| validate | back to summary |
|---|---|
| public boolean validate() Validates the overall consistency of the options and operands processed by processOptions.
| |
| validateAddExports | back to summary |
|---|---|
| private void validateAddExports(SourceVersion sv) | |
| validateAddModules | back to summary |
|---|---|
| private void validateAddModules(SourceVersion sv) | |
| validateAddReads | back to summary |
|---|---|
| private void validateAddReads(SourceVersion sv) | |
| validateDefaultModuleForCreatedFiles | back to summary |
|---|---|
| private void validateDefaultModuleForCreatedFiles(SourceVersion sv) | |
| validateLimitModules | back to summary |
|---|---|
| private void validateLimitModules(SourceVersion sv) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Arguments. | |
| public static final Arguments. | |
| public static final Arguments. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Arguments. | |
| public static Arguments. |
| ILLEGAL_ARGUMENT | back to summary |
|---|---|
| public static final Arguments. | |
| ILLEGAL_STATE | back to summary |
|---|---|
| public static final Arguments. | |
| LOG | back to summary |
|---|---|
| public static final Arguments. | |
| ErrorMode | back to summary |
|---|---|
| private ErrorMode() | |
| valueOf | back to summary |
|---|---|
| public static Arguments. | |
| values | back to summary |
|---|---|
| public static Arguments. | |
| report | back to summary |
|---|---|
| public void report(Option o) | |