@TypeQualifiers(value={LocalizableKey.class,PropertyKey.class,Unqualified.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, trees
processingEnv
Constructor and Description |
---|
LocalizableKeyChecker() |
createQualifierHierarchy, getLookupKeys, initChecker
createFactory, createQualifierHierarchy, createQualifierHierarchyFactory, createSourceVisitor, createSupportedTypeQualifiers, createTypeHierarchy, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, invokeConstructorFor
createSupportedLintOptions, errorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, printStats, report, setLintOption, setSupportedLintOptions, shouldAddShutdownHook, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shutdownHook, typeProcess, typeProcessingStart
init, process, typeProcessingOver
getCompletions, isInitialized, toString