|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.annotation.processing.AbstractProcessor com.sun.source.util.AbstractTypeProcessor checkers.source.SourceChecker checkers.basetype.BaseTypeChecker checkers.oigj.ImmutabilitySubchecker
@TypeQualifiers(value={ReadOnly.class,Mutable.class,Immutable.class,I.class,AssignsFields.class,checkers.oigj.OIGJMutabilityBottom.class}) public class ImmutabilitySubchecker extends BaseTypeChecker
Modifier and Type | Field and Description |
---|---|
protected AnnotationMirror |
ASSIGNS_FIELDS
Supported annotations for IGJ. |
protected AnnotationMirror |
BOTTOM_QUAL
Supported annotations for IGJ. |
protected AnnotationMirror |
I
Supported annotations for IGJ. |
protected AnnotationMirror |
IMMUTABLE
Supported annotations for IGJ. |
protected AnnotationMirror |
MUTABLE
Supported annotations for IGJ. |
protected AnnotationMirror |
READONLY
Supported annotations for IGJ. |
Fields inherited from class checkers.source.SourceChecker |
---|
currentPath, currentRoot, env, messager, messages, trees |
Fields inherited from class javax.annotation.processing.AbstractProcessor |
---|
processingEnv |
Constructor and Description |
---|
ImmutabilitySubchecker()
|
Modifier and Type | Method and Description |
---|---|
protected TypeHierarchy |
createTypeHierarchy()
Creates the type subtyping checker using the current type qualifier hierarchy. |
void |
init(ProcessingEnvironment env)
|
boolean |
isAssignable(AnnotatedTypeMirror varType,
AnnotatedTypeMirror receiverType,
Tree varTree)
Tests whether the variable accessed is an assignable variable or not, given the current scope |
Methods inherited from class checkers.basetype.BaseTypeChecker |
---|
createFactory, createQualifierHierarchy, createSourceVisitor, createSupportedTypeQualifiers, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, isSubtype, isValidUse |
Methods inherited from class checkers.source.SourceChecker |
---|
fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getShouldSkip, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, typeProcess |
Methods inherited from class com.sun.source.util.AbstractTypeProcessor |
---|
process, typeProcessingOver |
Methods inherited from class javax.annotation.processing.AbstractProcessor |
---|
getCompletions, isInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AnnotationMirror READONLY
protected AnnotationMirror MUTABLE
protected AnnotationMirror IMMUTABLE
protected AnnotationMirror I
protected AnnotationMirror ASSIGNS_FIELDS
protected AnnotationMirror BOTTOM_QUAL
Constructor Detail |
---|
public ImmutabilitySubchecker()
Method Detail |
---|
public void init(ProcessingEnvironment env)
SourceChecker
init
in interface Processor
init
in class BaseTypeChecker
AbstractProcessor.init(ProcessingEnvironment)
protected TypeHierarchy createTypeHierarchy()
BaseTypeChecker
createTypeHierarchy
in class BaseTypeChecker
public boolean isAssignable(AnnotatedTypeMirror varType, AnnotatedTypeMirror receiverType, Tree varTree)
BaseTypeChecker
isAssignable
in class BaseTypeChecker
varType
- the annotated variable typevarTree
- tree used to access the variable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |