public class DefaultScanner extends AbstractScanner
| 限定符和类型 | 字段和说明 |
|---|---|
protected ByteCodeReader |
byteCodeReader
字节码读取器
|
static String |
CHARSET |
protected ClassComparator |
classComparator
类比较器
|
protected Set<String> |
classes
字节码路径
|
protected I18nComparator |
i18nComparator
i18n比较器
|
protected JarFileFilter |
jarFilter
jar文件过滤器
|
protected Set<String> |
jars
jar路径
|
protected ResourceFileFilter |
resourceFilter
resource文件过滤器
|
static String |
SUF_CLS |
static String |
SUF_JAR |
static String |
SUF_PPT |
addedAbsolutePaths, addedRelativePaths, allowManifestAttributes, allowPaths, caller, ignoredManifestAttributes, ignoredPaths| 构造器和说明 |
|---|
DefaultScanner() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
buildI18n() |
protected void |
buildImpls() |
protected void |
buildInterface() |
protected Set<String> |
convertToAbsolutePaths(Set<String> paths) |
protected Set<String> |
filterPath(String... paths)
筛选路径
|
protected String |
findAppRoot()
寻找应用根目录
|
protected String |
findCallerPath()
寻找NLF框架调用者所在路径
|
protected String |
findFramePath() |
protected Set<String> |
findFromCallerClassPath()
寻找框架调用者(如果是jar)引用的Class-Path
|
protected Set<String> |
findFromClassPath()
寻找classpath们
|
protected boolean |
matchAttributes(Attributes attrs,
Map<String,Set<String>> targets) |
protected boolean |
matchPath(String path,
Set<String> targets) |
protected void |
scan() |
protected void |
scanClasses(File file,
String root) |
protected void |
scanJar(File jarFile) |
IScanner |
start()
开始扫描
|
addAbsolutePath, addRelativePath, allow, allowJarByManifestAttribute, ignore, ignoreJarByManifestAttribute, setCallerprotected JarFileFilter jarFilter
protected ResourceFileFilter resourceFilter
protected ClassComparator classComparator
protected I18nComparator i18nComparator
protected ByteCodeReader byteCodeReader
protected String findCallerPath() throws ClassNotFoundException, UnsupportedEncodingException
ClassNotFoundException - ClassNotFoundExceptionUnsupportedEncodingException - UnsupportedEncodingExceptionprotected String findFramePath() throws UnsupportedEncodingException
protected Set<String> findFromCallerClassPath() throws IOException
IOException - IO异常protected void buildI18n()
protected void buildImpls()
protected void buildInterface()
protected boolean matchAttributes(Attributes attrs, Map<String,Set<String>> targets)
protected void scanJar(File jarFile) throws IOException
IOExceptionprotected void scan()
throws IOException
IOExceptionprotected String findAppRoot()
Copyright © 2020. All Rights Reserved.