Class BinaryStubData.AnnotationRecord

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

public static class BinaryStubData.AnnotationRecord extends Object
Annotation data containing its class name and structural element value pairs.
  • Field Details

    • nameIndex

      public final int nameIndex
      Index into BinaryStubData.stringPool of the fully-qualified annotation class name.
    • elementValues

      public final Map<Integer,Object> elementValues
      Mapping from element member name (string pool index) to its structured value.
    • hasNameLiteral

      public final boolean hasNameLiteral
      True if any element value (recursively) is a BinaryStubData.NameLiteralValue. Such a record's resolution depends on the enclosing class, so it must not be memoised in the enclosing-class-independent annotation cache; precomputed here so the reader does not re-scan the values on every application.
  • Constructor Details

    • AnnotationRecord

      public AnnotationRecord(int nameIndex, Map<Integer,Object> elementValues)
      Constructs an AnnotationRecord.
      Parameters:
      nameIndex - index into the string pool of the fully-qualified annotation class name
      elementValues - mapping from element member name (string pool index) to its structured value