public <T> T internal_makefromJP(Class<T> clazz, String templateResourcePath, String cuPackage, String cuClass, String feelExpression, Expression theExpression, Set<FieldDeclaration> fieldDeclarations) { CompilationUnit cu = getCompilationUnit(clazz, templateResourcePath, cuPackage, cuClass, feelExpression, theExpression, fieldDeclarations ); return compileUnit(cuPackage, cuClass, cu); }
public String getSourceForUnaryTest(String packageName, String className, String feelExpression, Expression theExpression, Set<FieldDeclaration> fieldDeclarations) { CompilationUnit cu = getCompilationUnit(CompiledFEELUnaryTests.class, "/TemplateCompiledFEELUnaryTests.java", packageName, className, feelExpression, theExpression, fieldDeclarations ); ClassOrInterfaceDeclaration classSource = cu.getClassByName( className ).get(); classSource.setStatic( true ); return classSource.toString(); }
public CompilationUnit getSourceCode() { DirectCompilerResult compilerResult = getCompilerResult(); return compiler.getCompilationUnit( CompiledFEELUnaryTests.class, TEMPLATE_RESOURCE, packageName, TEMPLATE_CLASS, expression, compilerResult.getExpression(), compilerResult.getFieldDeclarations()); }
public CompilationUnit getSourceCode() { DirectCompilerResult compilerResult = getCompilerResult(); return compiler.getCompilationUnit( CompiledFEELExpression.class, TEMPLATE_RESOURCE, packageName, TEMPLATE_CLASS, expression, compilerResult.getExpression(), compilerResult.getFieldDeclarations()); }