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, treesprocessingEnv| 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, invokeConstructorForerrorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStartinit, process, typeProcessingOvergetCompletions, isInitialized, toStringprotected @Nullable AnnotationMirror FENUM
protected @Nullable AnnotationMirror BOTTOM
public void initChecker()
SourceCheckerinitChecker in class BaseTypeCheckerAbstractProcessor.init(ProcessingEnvironment)protected Set<Class<? extends Annotation>> createSupportedTypeQualifiers()
createSupportedTypeQualifiers in class BaseTypeCheckerTypeQualifierspublic Collection<@ReadOnly String> getSuppressWarningsKey()
getSuppressWarningsKey in class SourceCheckerSuppressWarningsKeypublic QualifierHierarchy createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
BaseTypeCheckercreateQualifierHierarchy in class BaseTypeChecker