Class BinaryStubData.TypeParamRecord
java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.TypeParamRecord
- Enclosing class:
BinaryStubData
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
FieldsModifier and TypeFieldDescriptionPer-bound type annotations.int[]Annotation-pool indices of the annotations on the type variable itself (applied to its lower bound, matching howAnnotationFileParser.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
ConstructorsConstructorDescriptionCreates an empty TypeParamRecord; fields are populated by the binary reader. -
Method Summary
-
Field Details
-
typeVarAnnos
public int[] typeVarAnnosAnnotation-pool indices of the annotations on the type variable itself (applied to its lower bound, matching howAnnotationFileParser.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
Per-bound type annotations. Elementiholds the type annotations for thei-th bound of this type parameter.
-
-
Constructor Details
-
TypeParamRecord
public TypeParamRecord()Creates an empty TypeParamRecord; fields are populated by the binary reader.
-