Class FileAnnotationFileResource
java.lang.Object
org.checkerframework.framework.stub.FileAnnotationFileResource
- All Implemented Interfaces:
AnnotationFileResource
File-based implementation of AnnotationFileResource.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aAnnotationFileResourcefor the specified annotation file (stub file or ajava file). -
Method Summary
Modifier and TypeMethodDescriptionReturns a user-friendly description of the resource (e.g.Returns a stream for reading the contents of the resource.
-
Constructor Details
-
FileAnnotationFileResource
Constructs aAnnotationFileResourcefor the specified annotation file (stub file or ajava file).- Parameters:
file- the annotation file
-
-
Method Details
-
getDescription
Description copied from interface:AnnotationFileResourceReturns a user-friendly description of the resource (e.g. a filesystem path).- Specified by:
getDescriptionin interfaceAnnotationFileResource- Returns:
- a description of the resource
-
getInputStream
Description copied from interface:AnnotationFileResourceReturns a stream for reading the contents of the resource.- Specified by:
getInputStreamin interfaceAnnotationFileResource- Throws:
IOException
-