Search in sources :

Example 16 with TypeAnnotationPosition

use of com.sun.tools.javac.code.TypeAnnotationPosition in project checker-framework by typetools.

the class TypeAnnotationUtils method classExtendsTAPosition.

public static TypeAnnotationPosition classExtendsTAPosition(final int implidx, final int pos) {
    TypeAnnotationPosition tapos = new TypeAnnotationPosition();
    tapos.type = TargetType.CLASS_EXTENDS;
    tapos.type_index = implidx;
    tapos.pos = pos;
    return tapos;
}
Also used : TypeAnnotationPosition(com.sun.tools.javac.code.TypeAnnotationPosition)

Example 17 with TypeAnnotationPosition

use of com.sun.tools.javac.code.TypeAnnotationPosition in project checker-framework by typetools.

the class TypeAnnotationUtils method typeParameterTAPosition.

public static TypeAnnotationPosition typeParameterTAPosition(final int tpidx, final int pos) {
    TypeAnnotationPosition tapos = new TypeAnnotationPosition();
    tapos.type = TargetType.CLASS_TYPE_PARAMETER;
    tapos.parameter_index = tpidx;
    tapos.pos = pos;
    return tapos;
}
Also used : TypeAnnotationPosition(com.sun.tools.javac.code.TypeAnnotationPosition)

Example 18 with TypeAnnotationPosition

use of com.sun.tools.javac.code.TypeAnnotationPosition in project checker-framework by typetools.

the class TypeAnnotationUtils method typeParameterBoundTAPosition.

public static TypeAnnotationPosition typeParameterBoundTAPosition(final int tpidx, final int bndidx, final int pos) {
    TypeAnnotationPosition tapos = new TypeAnnotationPosition();
    tapos.type = TargetType.CLASS_TYPE_PARAMETER_BOUND;
    tapos.parameter_index = tpidx;
    tapos.bound_index = bndidx;
    tapos.pos = pos;
    return tapos;
}
Also used : TypeAnnotationPosition(com.sun.tools.javac.code.TypeAnnotationPosition)

Aggregations

TypeAnnotationPosition (com.sun.tools.javac.code.TypeAnnotationPosition)18 TypeCompound (com.sun.tools.javac.code.Attribute.TypeCompound)5 Attribute (com.sun.tools.javac.code.Attribute)2 VarSymbol (com.sun.tools.javac.code.Symbol.VarSymbol)2 JCTree (com.sun.tools.javac.tree.JCTree)2 List (com.sun.tools.javac.util.List)2 ArrayList (java.util.ArrayList)2 TypeParameterTree (com.sun.source.tree.TypeParameterTree)1 MethodSymbol (com.sun.tools.javac.code.Symbol.MethodSymbol)1 LinkedHashMap (java.util.LinkedHashMap)1 List (java.util.List)1 AnnotationMirror (javax.lang.model.element.AnnotationMirror)1 AnnotatedTypeMirror (org.checkerframework.framework.type.AnnotatedTypeMirror)1 AnnotatedExecutableType (org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedExecutableType)1 AnnotatedTypeVariable (org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedTypeVariable)1