Class JavaParserUtils


  • public class JavaParserUtils
    extends Object
    • Method Detail

      • getCompilationUnit

        public static com.github.javaparser.ast.CompilationUnit getCompilationUnit​(String className,
                                                                                   String packageName,
                                                                                   String javaTemplate,
                                                                                   String modelClassName)
        Parameters:
        className -
        packageName -
        javaTemplate - the name of the file to be used as template source
        modelClassName - the name of the class used in the provided template
        Returns:
      • getFullClassName

        public static String getFullClassName​(com.github.javaparser.ast.CompilationUnit cu)
        Return the fully qualified name of the generated class. It throws KiePMMLException if the package name is missing
        Parameters:
        cu -
        Returns: