类 JdkCompiler
java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.compiler.AbstractCompiler
com.baidu.bjf.remoting.protobuf.utils.compiler.JdkCompiler
- 所有已实现的接口:
Compiler
JdkCompiler. (SPI, Singleton, ThreadSafe)
- 从以下版本开始:
- 1.0.0
- 作者:
- xiemalin
-
构造器概要
构造器构造器说明JdkCompiler(ClassLoader loader) Instantiates a new jdk compiler.JdkCompiler(ClassLoader loader, String jdkVersion) Instantiates a new jdk compiler. -
方法概要
从类继承的方法 com.baidu.bjf.remoting.protobuf.utils.compiler.AbstractCompiler
compile
-
构造器详细资料
-
JdkCompiler
Instantiates a new jdk compiler.- 参数:
loader- the loader
-
JdkCompiler
Instantiates a new jdk compiler.- 参数:
loader- the loaderjdkVersion- the jdk version
-
-
方法详细资料
-
doCompile
从类复制的说明:AbstractCompilerDo compile action.- 指定者:
doCompile在类中AbstractCompiler- 参数:
name- the namesourceCode- the java source code to compileos- theOutputStreaminstance- 返回:
- the class
- 抛出:
Throwable- the throwable
-
loadBytes
从接口复制的说明:Compilerdo load java byte code by class name- 参数:
className- full class name- 返回:
- byte code as byte array
-