| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
CacheableJdkCompiler.LoadableClassLoader
The Class LoadableClassLoader.
|
| 构造器和说明 |
|---|
CacheableJdkCompiler(Compiler compiler)
Instantiates a new cacheable jdk compiler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
cache(String className,
byte[] bytes,
long timestamp)
Cache.
|
protected abstract byte[] |
cached(String className,
long timestamp)
Cached.
|
Class<?> |
compile(String className,
String code,
ClassLoader classLoader,
OutputStream os,
long timestamp)
do compile java source.
|
protected Compiler compiler
public CacheableJdkCompiler(Compiler compiler)
compiler - the compilerpublic Class<?> compile(String className, String code, ClassLoader classLoader, OutputStream os, long timestamp)
Compilerprotected abstract byte[] cached(String className, long timestamp)
className - the class nametimestamp - the timestampprotected abstract void cache(String className, byte[] bytes, long timestamp)
className - the class namebytes - the bytestimestamp - the timestampCopyright © 2022 Baidu, Inc.. All rights reserved.