public class JaninoCompilerStrategy extends CompilerStrategy
CompilerStrategy.SourceCodeGenerationExceptionpathToWriteClassFiles, pathToWriteSourceFiles, WRITE_RELATIVE_TO_CLASSPATH, writeClassFiles, writeSourceFiles| Constructor and Description |
|---|
JaninoCompilerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
assureTypeIsAccessible(Class<?> type)
Verify that the Class provided is accessible to the compiler/generator.
|
Class<?> |
compileClass(SourceCodeContext sourceCode)
Compile and return the (generated) class; this will also cause the
generated class to be detached from the class-pool, and any (optional)
source and/or class files to be written.
|
preparePackageOutputPathpublic Class<?> compileClass(SourceCodeContext sourceCode) throws CompilerStrategy.SourceCodeGenerationException
CompilerStrategycompileClass in class CompilerStrategyCompilerStrategy.SourceCodeGenerationExceptionpublic void assureTypeIsAccessible(Class<?> type) throws CompilerStrategy.SourceCodeGenerationException
CompilerStrategyassureTypeIsAccessible in class CompilerStrategyCompilerStrategy.SourceCodeGenerationException - if the type is not accessibleCopyright © 2019 Glasnost. All rights reserved.