Class AnnotationFileStore
java.lang.Object
org.checkerframework.framework.ajava.AnnotationFileStore
Stores a collection of annotation files. Given a type name, can return a list of paths to stored
annotation files corresponding to that type name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFileOrDirectory
(File location) Iflocation
is a file, stores it in this as an annotation file.getAnnotationFileForType
(String typeName) Given a fully qualified type name, returns a List of paths to annotation files containing annotations for the type.
-
Constructor Details
-
AnnotationFileStore
public AnnotationFileStore()Constructs anAnnotationFileStore
.
-
-
Method Details
-
addFileOrDirectory
Iflocation
is a file, stores it in this as an annotation file. Iflocation
is a directory, stores all annotation files contained in it.- Parameters:
location
- an annotation file or a directory containing annotation files
-
getAnnotationFileForType
Given a fully qualified type name, returns a List of paths to annotation files containing annotations for the type.- Parameters:
typeName
- fully qualified name of a type- Returns:
- a list of paths to annotation files with annotations for
typeName
-