Search in sources :

Example 6 with PropagationTreeAnnotator

use of org.checkerframework.framework.type.treeannotator.PropagationTreeAnnotator in project checker-framework by typetools.

the class AinferTestAnnotatedTypeFactory method createTreeAnnotator.

@Override
public TreeAnnotator createTreeAnnotator() {
    LiteralTreeAnnotator literalTreeAnnotator = new LiteralTreeAnnotator(this);
    literalTreeAnnotator.addLiteralKind(LiteralKind.INT, BOTTOM);
    literalTreeAnnotator.addStandardLiteralQualifiers();
    return new ListTreeAnnotator(new PropagationTreeAnnotator(this), literalTreeAnnotator);
}
Also used : LiteralTreeAnnotator(org.checkerframework.framework.type.treeannotator.LiteralTreeAnnotator) PropagationTreeAnnotator(org.checkerframework.framework.type.treeannotator.PropagationTreeAnnotator) ListTreeAnnotator(org.checkerframework.framework.type.treeannotator.ListTreeAnnotator)

Example 7 with PropagationTreeAnnotator

use of org.checkerframework.framework.type.treeannotator.PropagationTreeAnnotator in project checker-framework by typetools.

the class ReflectionTestAnnotatedTypeFactory method createTreeAnnotator.

@Override
public TreeAnnotator createTreeAnnotator() {
    LiteralTreeAnnotator literalTreeAnnotator = new LiteralTreeAnnotator(this);
    AnnotationMirror bottom = AnnotationBuilder.fromClass(elements, ReflectBottom.class);
    literalTreeAnnotator.addLiteralKind(LiteralKind.INT, bottom);
    literalTreeAnnotator.addStandardLiteralQualifiers();
    return new ListTreeAnnotator(new PropagationTreeAnnotator(this), literalTreeAnnotator);
}
Also used : AnnotationMirror(javax.lang.model.element.AnnotationMirror) LiteralTreeAnnotator(org.checkerframework.framework.type.treeannotator.LiteralTreeAnnotator) PropagationTreeAnnotator(org.checkerframework.framework.type.treeannotator.PropagationTreeAnnotator) ListTreeAnnotator(org.checkerframework.framework.type.treeannotator.ListTreeAnnotator)

Aggregations

ListTreeAnnotator (org.checkerframework.framework.type.treeannotator.ListTreeAnnotator)7 PropagationTreeAnnotator (org.checkerframework.framework.type.treeannotator.PropagationTreeAnnotator)7 ImplicitsTreeAnnotator (org.checkerframework.framework.type.treeannotator.ImplicitsTreeAnnotator)4 LiteralTreeAnnotator (org.checkerframework.framework.type.treeannotator.LiteralTreeAnnotator)3 AnnotationMirror (javax.lang.model.element.AnnotationMirror)2 ArrayList (java.util.ArrayList)1 TreeAnnotator (org.checkerframework.framework.type.treeannotator.TreeAnnotator)1 DependentTypesTreeAnnotator (org.checkerframework.framework.util.dependenttypes.DependentTypesTreeAnnotator)1