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
ConstructorsConstructorDescriptionViewpointTestViewpointAdapter(AnnotatedTypeFactory atypeFactory) The class constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotationMirrorcombineAnnotationWithAnnotation(AnnotationMirror receiverAnnotation, AnnotationMirror declaredAnnotation) Viewpoint adapt declared qualifier to receiver qualifier.protected AnnotationMirrorExtract 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:AbstractViewpointAdapterExtract the relevant qualifier from anAnnotatedTypeMirror.- Specified by:
extractAnnotationMirrorin classAbstractViewpointAdapter- Parameters:
atm- AnnotatedTypeMirror from which qualifier is extracted- Returns:
- extracted qualifier
-
combineAnnotationWithAnnotation
protected AnnotationMirror combineAnnotationWithAnnotation(AnnotationMirror receiverAnnotation, AnnotationMirror declaredAnnotation) Description copied from class:AbstractViewpointAdapterViewpoint adapt declared qualifier to receiver qualifier.- Specified by:
combineAnnotationWithAnnotationin classAbstractViewpointAdapter- Parameters:
receiverAnnotation- receiver qualifierdeclaredAnnotation- declared qualifier- Returns:
- result qualifier after viewpoint adaptation
-