Class AnnotationFileParser.RecordStub
java.lang.Object
org.checkerframework.framework.stub.AnnotationFileParser.RecordStub
- Enclosing class:
AnnotationFileParser
Information about a record from a stub file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA map from name to record component.If the canonical constructor is given in the stubs, the annotated types (in component declaration order) for the constructor. -
Constructor Summary
ConstructorsConstructorDescriptionRecordStub(Map<String, AnnotationFileParser.RecordComponentStub> componentsByName) Creates a new RecordStub. -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotated types for the parameters to the canonical constructor.
-
Field Details
-
componentsByName
A map from name to record component. It must have deterministic insertion/iteration order: the order that they are declared in the record header. -
componentsInCanonicalConstructor
If the canonical constructor is given in the stubs, the annotated types (in component declaration order) for the constructor. Null if not present in the stubs.
-
-
Constructor Details
-
RecordStub
Creates a new RecordStub.- Parameters:
componentsByName- a map from name to record component. It must have deterministic insertion/iteration order: the order that they are declared in the record header.
-
-
Method Details
-
getComponentsInCanonicalConstructor
Returns the annotated types for the parameters to the canonical constructor. These come from explicit annotations on the constructor in the stubs if there are any; otherwise, they come from the annotations on the record components in the stubs.- Returns:
- the annotated types for the parameters to the canonical constructor
-