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 boolean | 
isCanonicalConstructor(ExecutableElement elt,
                      Types types)
Returns true if the given  
ExecutableElement is the canonical constructor of a record
 (i.e., the parameter types of the constructor correspond to the parameter types of the record
 components, ignoring annotations). | 
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 collectpublic static boolean isCanonicalConstructor(ExecutableElement elt, Types types)
ExecutableElement is the canonical constructor of a record
 (i.e., the parameter types of the constructor correspond to the parameter types of the record
 components, ignoring annotations).elt - the constructor/method to checktypes - the Types instance to use for comparing types