public class Compiler extends Object
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute()
执行编译
|
void |
execute(File SrcFile) |
File |
getClassFile(File srcFile)
获取编译后的主class文件
|
String |
getClassName(File classFile)
获取ClassName e.g.: org.lelouch.tools.HotswapAgent
|
File |
getClassPath() |
FolderPath.Config_getFileList |
getConfig() |
List<File> |
getInternalClassFile(File classFile)
获取编译后内部的class文件
|
File |
getSrcPath() |
void |
setClassPath(File classPath) |
void |
setConfig(FolderPath.Config_getFileList config) |
void |
setSrcPath(File srcPath) |
public Compiler(File classPath)
public File getSrcPath()
public void setSrcPath(File srcPath)
public File getClassPath()
public void setClassPath(File classPath)
public FolderPath.Config_getFileList getConfig()
public void setConfig(FolderPath.Config_getFileList config)
public void execute()
public void execute(File SrcFile)
SrcFile - public String getClassName(File classFile)
classFile - 编译后的主class文件Copyright © 2020. All rights reserved.