Package viewpointtest
Class ViewpointTestViewpointAdapter
java.lang.Object
org.checkerframework.framework.type.AbstractViewpointAdapter
viewpointtest.ViewpointTestViewpointAdapter
- All Implemented Interfaces:
ViewpointAdapter
The viewpoint adapter for the Viewpoint Test Checker.
-
Field Summary
Fields inherited from class org.checkerframework.framework.type.AbstractViewpointAdapter
atypeFactory
-
Constructor Summary
ConstructorDescriptionViewpointTestViewpointAdapter
(AnnotatedTypeFactory atypeFactory) The class constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotationMirror
combineAnnotationWithAnnotation
(AnnotationMirror receiverAnnotation, AnnotationMirror declaredAnnotation) Viewpoint adapt declared qualifier to receiver qualifier.protected AnnotationMirror
Extract the relevant qualifier from anAnnotatedTypeMirror
.Methods inherited from class org.checkerframework.framework.type.AbstractViewpointAdapter
combineAnnotationWithType, combineTypeWithType, shouldAdaptMember, shouldAdaptMethod, viewpointAdaptConstructor, viewpointAdaptMember, viewpointAdaptMethod, viewpointAdaptTypeParameterBounds
-
Constructor Details
-
ViewpointTestViewpointAdapter
The class constructor.- Parameters:
atypeFactory
- the type factory to use
-
-
Method Details
-
extractAnnotationMirror
Description copied from class:AbstractViewpointAdapter
Extract the relevant qualifier from anAnnotatedTypeMirror
.- Specified by:
extractAnnotationMirror
in classAbstractViewpointAdapter
- Parameters:
atm
- AnnotatedTypeMirror from which qualifier is extracted- Returns:
- extracted qualifier
-
combineAnnotationWithAnnotation
protected AnnotationMirror combineAnnotationWithAnnotation(AnnotationMirror receiverAnnotation, AnnotationMirror declaredAnnotation) Description copied from class:AbstractViewpointAdapter
Viewpoint adapt declared qualifier to receiver qualifier.- Specified by:
combineAnnotationWithAnnotation
in classAbstractViewpointAdapter
- Parameters:
receiverAnnotation
- receiver qualifierdeclaredAnnotation
- declared qualifier- Returns:
- result qualifier after viewpoint adaptation
-