Class AnnotationFileParser.RecordComponentStub
java.lang.Object
org.checkerframework.framework.stub.AnnotationFileParser.RecordComponentStub
- Enclosing class:
- AnnotationFileParser
Information about a record component: its type, and whether there was an accessor in the stubs
 for that component. That is, for a component "foo" was there a method named exactly "foo()" in
 the stubs. If so, annotations on that accessor will take precedence over annotations that would
 otherwise be copied from the component in the stubs to the acessor.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRecordComponentStub(AnnotatedTypeMirror type, AnnotationMirrorSet allAnnotations) Creates a new RecordComponentStub with the given type.
- 
Method SummaryModifier and TypeMethodDescriptiongetAnnotationsForTarget(ElementKind elementKind) Get the record component annotations that are applicable to the given element kind.booleanReturns whether there is an accessor in a stub file.
- 
Field Details- 
typeThe type of the record component.
 
- 
- 
Constructor Details- 
RecordComponentStubCreates a new RecordComponentStub with the given type.- Parameters:
- type- the type of the record component
- allAnnotations- the declaration annotations on the component
 
 
- 
- 
Method Details- 
getAnnotationsForTargetGet the record component annotations that are applicable to the given element kind.- Parameters:
- elementKind- the element kind to apply to (e.g., FIELD, METHOD)
- Returns:
- the set of annotations from the component that apply
 
- 
hasAccessorInStubspublic boolean hasAccessorInStubs()Returns whether there is an accessor in a stub file.- Returns:
- true if some stub file contains an accessor for this record component
 
 
-