public class JavaFileObjectUtil extends Object
JavaFileObject
相关工具类封装Constructor and Description |
---|
JavaFileObjectUtil() |
Modifier and Type | Method and Description |
---|---|
static List<JavaFileObject> |
getJavaFileObjects(File file)
获取指定文件下的所有待编译的java文件,并以
JavaFileObject 形式返回 |
static boolean |
isJarOrZipFile(String fileName)
是否是jar 或 zip 文件
|
static boolean |
isJavaFile(String fileName)
是否是java文件
|
public static List<JavaFileObject> getJavaFileObjects(File file)
JavaFileObject
形式返回file
- 文件或目录,文件支持.java、.jar和.zip文件JavaFileObject
public static boolean isJarOrZipFile(String fileName)
fileName
- 文件名public static boolean isJavaFile(String fileName)
fileName
- 文件名Copyright © 2024. All rights reserved.