Java 类net.sf.jasperreports.engine.design.JRDefaultCompilationSourceCode 实例源码

项目:PDFReporter-Studio    文件:JEvalCompiler.java   
@Override
protected JRCompilationSourceCode generateSourceCode(
        JRSourceCompileTask sourceTask) throws JRException {
    // TODO (12.04.2013, Donat, Open Software Solutions): Create a evaluator instance per call and serialize it
    JEvalExpressionEvaluator evaluator = new JEvalExpressionEvaluator();
    evaluator.initializeWithDefaults(sourceTask);
    evaluator.parseExpressions(sourceTask);
    evaluators.put(sourceTask.getUnitName(), evaluator);
    return new JRDefaultCompilationSourceCode(sourceTask.getUnitName(),null);
}
项目:jasperreports    文件:JRBshCompiler.java   
@Override
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
{
    return new JRDefaultCompilationSourceCode(JRBshGenerator.generateScript(sourceTask), null);
}
项目:jasperreports    文件:JRGroovyCompiler.java   
@Override
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
{
    return new JRDefaultCompilationSourceCode(JRGroovyGenerator.generateClass(sourceTask), null);
}
项目:jasperreports-scala    文件:JRScalaCompiler.java   
/**
 * @see net.sf.jasperreports.engine.design.JRAbstractCompiler#generateSourceCode(net.sf.jasperreports.engine.design.JRSourceCompileTask)
 */
@Override
protected JRCompilationSourceCode generateSourceCode(
        JRSourceCompileTask sourceTask) throws JRException {
    return new JRDefaultCompilationSourceCode(JRScalaGenerator.generateClass(sourceTask), null);
}