Class BinaryStubData.TypeParamRecord

java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.TypeParamRecord
Enclosing class:
BinaryStubData

public static class BinaryStubData.TypeParamRecord extends Object
Annotation data for a single type parameter (class-level or method-level). Stores the annotations on the type variable itself and type annotations on each of its bounds.

For <T extends @X Bound>: typeVarAnnos holds pool indices of annotations on T itself (applied to the lower bound); boundAnnos[0] holds the type annotations on Bound (path-encoded as for a type annotation).

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Per-bound type annotations.
    int[]
    Annotation-pool indices of the annotations on the type variable itself (applied to its lower bound, matching how AnnotationFileParser.annotateTypeParameters(com.github.javaparser.ast.body.BodyDeclaration<?>, java.lang.Object, java.util.List<? extends org.checkerframework.framework.type.AnnotatedTypeMirror>, java.util.List<com.github.javaparser.ast.type.TypeParameter>) applies them).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty TypeParamRecord; fields are populated by the binary reader.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • typeVarAnnos

      public int[] typeVarAnnos
      Annotation-pool indices of the annotations on the type variable itself (applied to its lower bound, matching how AnnotationFileParser.annotateTypeParameters(com.github.javaparser.ast.body.BodyDeclaration<?>, java.lang.Object, java.util.List<? extends org.checkerframework.framework.type.AnnotatedTypeMirror>, java.util.List<com.github.javaparser.ast.type.TypeParameter>) applies them).
    • boundAnnos

      public BinaryStubData.TypeAnno[][] boundAnnos
      Per-bound type annotations. Element i holds the type annotations for the i-th bound of this type parameter.
  • Constructor Details

    • TypeParamRecord

      public TypeParamRecord()
      Creates an empty TypeParamRecord; fields are populated by the binary reader.