Class BinaryStubData.AnnotationRecord
java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.AnnotationRecord
- Enclosing class:
BinaryStubData
Annotation data containing its class name and structural element value pairs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMapping from element member name (string pool index) to its structured value.final booleanTrue if any element value (recursively) is aBinaryStubData.NameLiteralValue.final intIndex intoBinaryStubData.stringPoolof the fully-qualified annotation class name. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationRecord(int nameIndex, Map<Integer, Object> elementValues) Constructs an AnnotationRecord. -
Method Summary
-
Field Details
-
nameIndex
public final int nameIndexIndex intoBinaryStubData.stringPoolof the fully-qualified annotation class name. -
elementValues
Mapping from element member name (string pool index) to its structured value. -
hasNameLiteral
public final boolean hasNameLiteralTrue if any element value (recursively) is aBinaryStubData.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
Constructs an AnnotationRecord.- Parameters:
nameIndex- index into the string pool of the fully-qualified annotation class nameelementValues- mapping from element member name (string pool index) to its structured value
-