public class AnnotationFileUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationFileUtil.AnnotationFileType
The types of files that can contain annotations.
|
Constructor and Description |
---|
AnnotationFileUtil() |
Modifier and Type | Method and Description |
---|---|
static @Nullable List<AnnotationFileResource> |
allAnnotationFiles(String location,
AnnotationFileUtil.AnnotationFileType fileType)
Return annotation files found at a given file system location (does not look on classpath).
|
static Pair<String,String> |
partitionQualifiedName(String imported)
Split a name (which comes from an import statement) into the part before the last period and
the part after the last period.
|
public static Pair<String,String> partitionQualifiedName(String imported)
imported
- the name to splitpublic static @Nullable List<AnnotationFileResource> allAnnotationFiles(String location, AnnotationFileUtil.AnnotationFileType fileType)
location
- an annotation file (stub file or ajava file), a jarfile, or a directory. Look
for it as an absolute file and relative to the current directory.fileType
- file type of files to collect