public class FenumChecker extends BaseTypeChecker
@Fenum("Name")
: introduces a fake enumerator with the name
"Name". Enumerators with different names are distinct. The default name is
empty, but you are encouraged to use a unique name for your purpose.
-Aqual
command line argument.
Modifier and Type | Class and Description |
---|---|
protected class |
FenumChecker.FenumQualifierHierarchy |
SourceChecker.CheckerError
Modifier and Type | Field and Description |
---|---|
protected @Nullable AnnotationMirror |
BOTTOM |
protected @Nullable AnnotationMirror |
FENUM |
currentPath, currentRoot, messager, messages, trees
processingEnv
Constructor and Description |
---|
FenumChecker() |
Modifier and Type | Method and Description |
---|---|
QualifierHierarchy |
createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
Factory method to easily change what QualifierHierarchy is
created.
|
protected Set<Class<? extends Annotation>> |
createSupportedTypeQualifiers()
Copied from BasicChecker.
|
Collection<@ReadOnly String> |
getSuppressWarningsKey()
Copied from BasicChecker; cannot reuse it, because BasicChecker is final.
|
void |
initChecker()
Initialize the checker.
|
createFactory, createQualifierHierarchy, createQualifierHierarchyFactory, createSourceVisitor, createTypeHierarchy, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, invokeConstructorFor
errorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStart
init, process, typeProcessingOver
getCompletions, isInitialized, toString
protected @Nullable AnnotationMirror FENUM
protected @Nullable AnnotationMirror BOTTOM
public void initChecker()
SourceChecker
initChecker
in class BaseTypeChecker
AbstractProcessor.init(ProcessingEnvironment)
protected Set<Class<? extends Annotation>> createSupportedTypeQualifiers()
createSupportedTypeQualifiers
in class BaseTypeChecker
TypeQualifiers
public Collection<@ReadOnly String> getSuppressWarningsKey()
getSuppressWarningsKey
in class SourceChecker
SuppressWarningsKey
public QualifierHierarchy createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
BaseTypeChecker
createQualifierHierarchy
in class BaseTypeChecker