Skip to content

Commit

Permalink
[incubator-kie-issues#1206] Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele-Cardosi committed Jun 12, 2024
1 parent a6075f0 commit eb7a357
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,6 @@ public Class<?> load(MemoryFileSystem pStore, String string) {

}

// public CompiledFEELExpression makeFromJPExpression(Expression theExpression) {
// return makeFromJPExpression(null, theExpression, Collections.emptySet());
// }

public CompiledFEELExpression makeFromJPExpression(String feelExpression, Expression theExpression, Set<FieldDeclaration> fieldDeclarations) {
return internal_makefromJP(CompiledFEELExpression.class, "/TemplateCompiledFEELExpression.java", generateRandomPackage(), "TemplateCompiledFEELExpression", feelExpression, theExpression, fieldDeclarations);
}

// public CompiledFEELUnaryTests makeFromJPUnaryTestsExpression(String feelExpression, Expression theExpression, Set<FieldDeclaration> fieldDeclarations) {
// return internal_makefromJP(CompiledFEELUnaryTests.class, "/TemplateCompiledFEELUnaryTests.java", generateRandomPackage(), "TemplateCompiledFEELUnaryTests", feelExpression, theExpression, fieldDeclarations);
// }
//
// public CompiledFEELUnaryTests makeFromJPUnaryTestsExpression(String packageName, String className, String feelExpression, Expression theExpression, Set<FieldDeclaration> fieldDeclarations) {
// return internal_makefromJP(CompiledFEELUnaryTests.class, "/TemplateCompiledFEELUnaryTests.java", packageName, className, feelExpression, theExpression, fieldDeclarations);
// }

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 <T> T compileUnit(String cuPackage, String cuClass, CompilationUnit cu) {
try {
MemoryResourceReader pReader = new MemoryResourceReader();
Expand Down

0 comments on commit eb7a357

Please sign in to comment.