public class DefaultScanner extends AbstractScanner
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CHARSET |
protected Set<String> |
classes
字节码路径
|
protected I18nComparator |
i18nComparator
i18n比较器
|
protected Set<String> |
jars
jar路径
|
protected ResourceFileFilter |
resourceFilter
resource文件过滤器
|
static String |
SUF_CLASS |
static String |
SUF_JAR |
static String |
SUF_PPT |
caller| 构造器和说明 |
|---|
DefaultScanner() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
buildI18n() |
protected Set<String> |
filterPath(String... paths)
筛选路径
|
protected void |
findAppRoot()
寻找应用根目录
|
protected void |
findCallerPath()
寻找NLF框架调用者所在路径
|
protected void |
findFramePath() |
protected Set<String> |
findFromCallerClassPath()
寻找框架调用者(如果是jar)引用的Class-Path
|
protected Set<String> |
findFromClassPath()
寻找classpath们
|
protected void |
scan() |
protected void |
scanClasses(File file,
String root) |
protected void |
scanJar(File jarFile) |
IScanner |
start()
开始扫描
|
setCallerprotected ResourceFileFilter resourceFilter
protected I18nComparator i18nComparator
protected void findCallerPath()
throws ClassNotFoundException,
UnsupportedEncodingException
ClassNotFoundException - ClassNotFoundExceptionUnsupportedEncodingException - UnsupportedEncodingExceptionprotected void findFramePath()
throws UnsupportedEncodingException
protected Set<String> findFromCallerClassPath() throws IOException
IOException - IO异常protected void buildI18n()
protected void scanJar(File jarFile) throws IOException
IOExceptionprotected void scan()
throws IOException
IOExceptionprotected void findAppRoot()
Copyright © 2023. All Rights Reserved.