public class IGJChecker extends BaseTypeChecker
ReadOnly
, Mutable
,
Immutable
, I
-- a polymorphic qualifier, Assignable
,
and AssignsFields
. The language is specified by the FSE 2007 paper.SourceChecker.CheckerError
Modifier and Type | Field and Description |
---|---|
protected @Nullable AnnotationMirror |
ASSIGNS_FIELDS
Supported annotations for IGJ.
|
protected @Nullable AnnotationMirror |
BOTTOM_QUAL
Supported annotations for IGJ.
|
protected @Nullable AnnotationMirror |
I
Supported annotations for IGJ.
|
protected @Nullable AnnotationMirror |
IMMUTABLE
Supported annotations for IGJ.
|
protected @Nullable AnnotationMirror |
MUTABLE
Supported annotations for IGJ.
|
protected @Nullable AnnotationMirror |
READONLY
Supported annotations for IGJ.
|
currentPath, currentRoot, messager, messages, trees
processingEnv
Constructor and Description |
---|
IGJChecker() |
Modifier and Type | Method and Description |
---|---|
QualifierHierarchy |
createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
Factory method to easily change what QualifierHierarchy is
created.
|
protected TypeHierarchy |
createTypeHierarchy()
Creates the type subtyping checker using the current type qualifier
hierarchy.
|
void |
initChecker()
Initialize the checker.
|
createFactory, createQualifierHierarchy, createQualifierHierarchyFactory, createSourceVisitor, createSupportedTypeQualifiers, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, invokeConstructorFor
errorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStart
init, process, typeProcessingOver
getCompletions, isInitialized, toString
protected @Nullable AnnotationMirror READONLY
protected @Nullable AnnotationMirror MUTABLE
protected @Nullable AnnotationMirror IMMUTABLE
protected @Nullable AnnotationMirror I
protected @Nullable AnnotationMirror ASSIGNS_FIELDS
protected @Nullable AnnotationMirror BOTTOM_QUAL
public void initChecker()
SourceChecker
initChecker
in class BaseTypeChecker
AbstractProcessor.init(ProcessingEnvironment)
public QualifierHierarchy createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
BaseTypeChecker
createQualifierHierarchy
in class BaseTypeChecker
protected TypeHierarchy createTypeHierarchy()
BaseTypeChecker
createTypeHierarchy
in class BaseTypeChecker