public class BytecodeCache
extends java.lang.Object
Constructor and Description |
---|
BytecodeCache() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheBytecode(byte[] byteCode,
java.lang.String name,
java.lang.String source)
Cache the bytecode
|
static void |
deleteBytecode(java.lang.String name)
Delete the bytecode
|
static byte[] |
getBytecode(java.lang.String name,
java.lang.String source)
Retrieve the bytecode if source has not changed
|
public static void deleteBytecode(java.lang.String name)
name
- Cache namepublic static byte[] getBytecode(java.lang.String name, java.lang.String source)
name
- The cache namesource
- The source codepublic static void cacheBytecode(byte[] byteCode, java.lang.String name, java.lang.String source)
byteCode
- The bytecodename
- The cache namesource
- The corresponding sourceGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly