Search in sources :

Example 6 with AnnotatedIntersectionType

use of org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedIntersectionType in project checker-framework by typetools.

the class AtmLubVisitor method visitIntersection_Intersection.

@Override
public Void visitIntersection_Intersection(AnnotatedIntersectionType type1, AnnotatedIntersectionType type2, AnnotatedTypeMirror lub) {
    AnnotatedIntersectionType castedLub = castLub(type1, lub);
    lubPrimaryAnnotations(type1, type2, lub);
    for (int i = 0; i < lub.directSuperTypes().size(); i++) {
        AnnotatedDeclaredType lubST = castedLub.directSuperTypes().get(i);
        visit(type1.directSuperTypes().get(i), type2.directSuperTypes().get(i), lubST);
    }
    return null;
}
Also used : AnnotatedIntersectionType(org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedIntersectionType) AnnotatedDeclaredType(org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedDeclaredType)

Aggregations

AnnotatedIntersectionType (org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedIntersectionType)6 AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedDeclaredType)5 ArrayList (java.util.ArrayList)3 ClassTree (com.sun.source.tree.ClassTree)2 ExpressionTree (com.sun.source.tree.ExpressionTree)2 IdentifierTree (com.sun.source.tree.IdentifierTree)2 MethodTree (com.sun.source.tree.MethodTree)2 Tree (com.sun.source.tree.Tree)2 AnnotatedTypeTree (com.sun.source.tree.AnnotatedTypeTree)1 AnnotationTree (com.sun.source.tree.AnnotationTree)1 ArrayTypeTree (com.sun.source.tree.ArrayTypeTree)1 AssignmentTree (com.sun.source.tree.AssignmentTree)1 CompilationUnitTree (com.sun.source.tree.CompilationUnitTree)1 ConditionalExpressionTree (com.sun.source.tree.ConditionalExpressionTree)1 IntersectionTypeTree (com.sun.source.tree.IntersectionTypeTree)1 LambdaExpressionTree (com.sun.source.tree.LambdaExpressionTree)1 MemberReferenceTree (com.sun.source.tree.MemberReferenceTree)1 MemberSelectTree (com.sun.source.tree.MemberSelectTree)1 MethodInvocationTree (com.sun.source.tree.MethodInvocationTree)1 NewArrayTree (com.sun.source.tree.NewArrayTree)1