Interface OptionConfiguration
- All Known Implementing Classes:
- AccumulationChecker,- AggregateChecker,- AliasingChecker,- AnnotationStatistics,- BaseTypeChecker,- CalledMethodsChecker,- ClassValChecker,- CompilerMessagesChecker,- FenumChecker,- FormatterChecker,- GuiEffectChecker,- I18nChecker,- I18nFormatterChecker,- I18nSubchecker,- IndexChecker,- InitializationChecker,- InitializedFieldsChecker,- InterningChecker,- JavaCodeStatistics,- KeyForSubchecker,- LessThanChecker,- LocalizableKeyChecker,- LockChecker,- LowerBoundChecker,- MethodValChecker,- MustCallChecker,- MustCallNoCreatesMustCallForChecker,- NonEmptyChecker,- NullnessChecker,- OptionalChecker,- PropertyKeyChecker,- PurityChecker,- RegexChecker,- ReportChecker,- ResourceLeakChecker,- ReturnsReceiverChecker,- SameLenChecker,- SearchIndexChecker,- SignatureChecker,- SignednessChecker,- SourceChecker,- SqlQuotesChecker,- SubstringIndexChecker,- SubtypingChecker,- TaintingChecker,- TypeOutputtingChecker,- UnitsChecker,- UpperBoundChecker,- ValueChecker
public interface OptionConfiguration
Provides methods for querying the Checker's options.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetBooleanOption(String name) Determines the boolean value of the option with the given name.booleangetBooleanOption(String name, boolean defaultValue) Determines the boolean value of the option with the given name.Determines the value of the option with the given name.Determines the boolean value of the option with the given name.Return all active options for this checker.getStringsOption(String name, char separator) Determines the string list value of the option with the given name.getStringsOption(String name, char separator, List<String> defaultValue) Determines the string list value of the option with the given name.getStringsOption(String name, String separator) Determines the string list value of the option with the given name.getStringsOption(String name, String separator, List<String> defaultValue) Determines the string list value of the option with the given name.Map the Checker Framework version ofSupportedOptionsto the standard annotation provided versionSupportedOptions.booleanCheck whether the given option is provided.
- 
Method Details- 
getOptionsReturn all active options for this checker.- Returns:
- all active options for this checker
 
- 
hasOptionCheck whether the given option is provided.Note that getOption(java.lang.String)can still return null even ifhasOptionreturns true: this happens e.g. for-Amyopt- Parameters:
- name- the name of the option to check
- Returns:
- true if the option name was provided, false otherwise
 
- 
getOptionDetermines the value of the option with the given name.Note that getOptioncan still return null even ifhasOption(java.lang.String)returns true: this happens e.g. for-Amyopt- Parameters:
- name- the name of the option to check
- Returns:
- the value of the option with the given name
- See Also:
 
- 
getOptionDetermines the boolean value of the option with the given name. ReturnsdefaultValueif the option is not set.- Parameters:
- name- the name of the option to check
- defaultValue- the default value to return if the option is not set
- Returns:
- the value of the option with the given name, or defaultValue
- See Also:
 
- 
getBooleanOptionDetermines the boolean value of the option with the given name. Returns false if the option is not set.- Parameters:
- name- the name of the option to check
- Returns:
- the boolean value of the option
 
- 
getBooleanOptionDetermines the boolean value of the option with the given name. Returns the given default value if the option is not set.- Parameters:
- name- the name of the option to check
- defaultValue- the default value to use if the option is not set
- Returns:
- the boolean value of the option
 
- 
getStringsOptionDetermines the string list value of the option with the given name. The option's value is split on the given separator. Returns an empty list if the option is not set.- Parameters:
- name- the name of the option to check
- separator- the separator for list elements
- Returns:
- the list of options
 
- 
getStringsOptionDetermines the string list value of the option with the given name. The option's value is split on the given separator. Returns the given default value if the option is not set.- Parameters:
- name- the name of the option to check
- separator- the separator for list elements
- defaultValue- the default value to use if the option is not set
- Returns:
- the list of options
 
- 
getStringsOptionDetermines the string list value of the option with the given name. The option's value is split on the given separator. Returns an empty list if the option is not set.- Parameters:
- name- the name of the option to check
- separator- the separator for list elements
- Returns:
- the list of options
 
- 
getStringsOptionDetermines the string list value of the option with the given name. The option's value is split on the given separator. Returns the given default value if the option is not set.- Parameters:
- name- the name of the option to check
- separator- the separator for list elements
- defaultValue- the default value to use if the option is not set
- Returns:
- the list of options
 
- 
getSupportedOptionsMap the Checker Framework version ofSupportedOptionsto the standard annotation provided versionSupportedOptions.- Returns:
- the supported options
 
 
-