|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.tools.commons.ClazzFinder
public class ClazzFinder
| 字段摘要 | |
|---|---|
static String |
JAVA_CLASS_PATH
|
static String |
JAVA_EXT_DIRS
|
static String |
SUN_BOOT_PATH
获得packPath路径下所有的class |
| 构造方法摘要 | |
|---|---|
ClazzFinder()
|
|
| 方法摘要 | |
|---|---|
static List<String> |
findClazz(Class claz)
获得的与claz的package相同的所有class |
static List<String> |
findClazz(String packPath)
|
protected static List<String> |
findClazzInIdeApp(String clazPath,
String packPath)
|
protected static List<String> |
findClazzInIdeTarget(String target,
String packPath)
在IDE的编译路径中获取packPath下所有的class |
protected static List<String> |
findClazzInJarApp(String jarName,
String packPath)
获得所有jar包中package下面所有的class |
static String |
finePackageDir(Class claz)
获得class的package路径 |
protected static boolean |
isAppRunningInIde(String clazPath)
判断应用程序是否运行在IDE容器里 |
protected static boolean |
isAppRunningInJar(String clazPath)
判断App是否是已jar方式运行的 |
protected static String |
pathReplace(String path)
替换路径中所有的/\为. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String SUN_BOOT_PATH
public static final String JAVA_EXT_DIRS
public static final String JAVA_CLASS_PATH
| 构造方法详细信息 |
|---|
public ClazzFinder()
| 方法详细信息 |
|---|
protected static boolean isAppRunningInIde(String clazPath)
clazPath -
protected static boolean isAppRunningInJar(String clazPath)
clazPath -
protected static List<String> findClazzInIdeApp(String clazPath,
String packPath)
throws IOException
clazPath - packPath -
IOException
protected static List<String> findClazzInJarApp(String jarName,
String packPath)
throws IOException
clazPath - packPath -
IOException
protected static List<String> findClazzInIdeTarget(String target,
String packPath)
target - pathPath -
protected static String pathReplace(String path)
path -
public static List<String> findClazz(String packPath)
public static List<String> findClazz(Class claz)
claz -
public static String finePackageDir(Class claz)
claz -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||