C F G J L R
C
- cn.foxtech.common.utils.reflect - 程序包 cn.foxtech.common.utils.reflect
-
F
- findAndAddClassesInPackageByFile(String, String, boolean, Set<Class<?>>) - 类 中的静态方法cn.foxtech.common.utils.reflect.JarLoaderUtils
-
以文件的形式来获取包下的所有Class
G
- getClasses(String) - 类 中的静态方法cn.foxtech.common.utils.reflect.JarLoaderUtils
-
从包package中获取所有的Class
- getMethod(Class<T>, ReflectionUtils.SerializableFunction<E, R>) - 类 中的静态方法cn.foxtech.common.utils.reflect.ReflectionUtils
-
获取类的函数
- getMethodName(ReflectionUtils.SerializableFunction<E, R>) - 类 中的静态方法cn.foxtech.common.utils.reflect.ReflectionUtils
-
获取类函数的名称
例如:getMethodName(Integer.toHexString),返回的就是toHexString
J
- JarLoaderUtils - cn.foxtech.common.utils.reflect中的类
-
- JarLoaderUtils() - 类 的构造器cn.foxtech.common.utils.reflect.JarLoaderUtils
-
L
- loadJar(String) - 类 中的静态方法cn.foxtech.common.utils.reflect.JarLoaderUtils
-
根据文件路径名称,装载某个jar包
- loadJar(File) - 类 中的静态方法cn.foxtech.common.utils.reflect.JarLoaderUtils
-
动态加载某个jar包
注意:如果jar存在依赖关系,那么该jar包中的类真正可用,需要把基类的jar也加载上
比如AClass在A.jar中,但AClass派生自ABaseClass,ABaseClass在ABase.jar
那么要加载A.jar和ABase.jar后,AClass才可以被使用,否则会提示NoClassDefFoundException
结果,你以为AClass找不到,实际上是ABaseClass找不到
R
- ReflectionUtils - cn.foxtech.common.utils.reflect中的类
-
- ReflectionUtils() - 类 的构造器cn.foxtech.common.utils.reflect.ReflectionUtils
-
- ReflectionUtils.SerializableFunction<E,R> - cn.foxtech.common.utils.reflect中的接口
-
C F G J L R
Copyright © 2024. All rights reserved.