@TypeQualifiers(value={LocalizableKey.class,PropertyKey.class,UnknownPropertyKey.class}) @SupportedOptions(value={"propfiles","bundlenames"}) public class LocalizableKeyChecker extends PropertyKeyChecker
ResourceBundle.getString(String)
).
Currently, the checker supports two methods for localization checks:
propfiles
option (e.g. -Apropfiles=/path/to/messages.properties
),
separating multiple files by a colon ":".
ResourceBundle
:
The proper recommended mechanism for localization.
Programmers pass the baseName
name of the bundle via
bundlename
(e.g. -Abundlename=MyResource
. The checker uses
the resource associated with the default Locale
in the compilation
system.
SourceChecker.CheckerError
currentPath, currentRoot, DETAILS_SEPARATOR, messager, messages, MSGS_FILE, trees, visitor
Constructor and Description |
---|
LocalizableKeyChecker() |
createSourceVisitor, getSupportedLintOptions, invokeConstructorFor
addOptions, createSupportedLintOptions, errorAbort, errorAbort, expandCFOptions, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getOption, getOption, getOptions, getProcessingEnvironment, getProperties, getStandardSuppressWarningsKeys, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKeys, hasOption, initChecker, message, printStats, report, setLintOption, setSupportedLintOptions, shouldAddShutdownHook, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shouldSkipUses, shutdownHook, treeToFilePositionString, typeProcess, typeProcessingStart
init, process, typeProcessingOver