checkers.i18n
Class I18nChecker

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by com.sun.source.util.AbstractTypeProcessor
          extended by checkers.util.AggregateChecker
              extended by checkers.i18n.I18nChecker
All Implemented Interfaces:
Processor

public class I18nChecker
extends AggregateChecker

A type-checker that enforces (and finds the violations of) two properties:

  1. Only localized output gets emitted to the user
  2. Only localizable keys (i.e. keys found in localizing resource bundles) get used as such.

See Also:
SubI18Checker, LocalizableKeyChecker

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
Constructor and Description
I18nChecker()
           
 
Method Summary
Modifier and Type Method and Description
protected  Collection<Class<? extends SourceChecker>> getSupportedCheckers()
          Returns the list of supported checkers to be run together.
 
Methods inherited from class checkers.util.AggregateChecker
getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, typeProcess, typeProcessingOver
 
Methods inherited from class com.sun.source.util.AbstractTypeProcessor
process
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

I18nChecker

public I18nChecker()
Method Detail

getSupportedCheckers

protected Collection<Class<? extends SourceChecker>> getSupportedCheckers()
Description copied from class: AggregateChecker
Returns the list of supported checkers to be run together. Subclasses need to override this method.

Specified by:
getSupportedCheckers in class AggregateChecker