checkers.propkey
Class PropertyKeyChecker
java.lang.Object
   javax.annotation.processing.AbstractProcessor
javax.annotation.processing.AbstractProcessor
       com.sun.source.util.AbstractTypeProcessor
com.sun.source.util.AbstractTypeProcessor
           checkers.source.SourceChecker
checkers.source.SourceChecker
               checkers.basetype.BaseTypeChecker
checkers.basetype.BaseTypeChecker
                   checkers.propkey.PropertyKeyChecker
checkers.propkey.PropertyKeyChecker
- All Implemented Interfaces:
- Processor
- Direct Known Subclasses:
- CompilerMessagesChecker, LocalizableKeyChecker
@TypeQualifiers(value={PropertyKey.class,Unqualified.class})
@SupportedOptions(value={"propfiles","bundlenames"})
public class PropertyKeyChecker
extends BaseTypeChecker
A type-checker that checks that only valid keys are used to access property files
 and resource bundles.
 Subclasses can specialize this class for the different uses of property files,
 for examples see the i18n and compilermsgs checkers.
 Currently, the checker supports two methods to check:
 
 - Property files:
 A common method for localization using a property file, mapping the
 keys to values.
 Programmers pass the property file locations via
 propfilesoption (e.g.-Apropfiles=/path/to/messages.properties),
 separating multiple files by a colon ":".
- ResourceBundle:
 Programmers pass the- baseNamename of the bundle via- bundlename(e.g.- -Abundlename=MyResource.  The checker uses
 the resource associated with the default- Localein the compilation
 system.
 
 
 
 
 
| Methods inherited from class checkers.basetype.BaseTypeChecker | 
| createFactory, createQualifierHierarchy, createSourceVisitor, createSupportedTypeQualifiers, createTypeHierarchy, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, isAssignable, isSubtype, isValidUse | 
 
| Methods inherited from class checkers.source.SourceChecker | 
| fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getShouldSkip, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, typeProcess | 
 
 
 
 
PropertyKeyChecker
public PropertyKeyChecker()
init
public void init(ProcessingEnvironment env)
- Description copied from class: SourceChecker
- 
 
- 
- Specified by:
- initin interface- Processor
- Overrides:
- initin class- BaseTypeChecker
 
- 
- See Also:
- AbstractProcessor.init(ProcessingEnvironment)
 
getLookupKeys
public Set<String> getLookupKeys()
- Returns a set of the valid keys that can be used.