public class JavaParserUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MAIN_CLASS_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
static com.github.javaparser.ast.CompilationUnit |
getFromFileName(String fileName) |
static String |
getFullClassName(com.github.javaparser.ast.CompilationUnit cu)
Return the fully qualified name of the generated class.
|
static com.github.javaparser.ast.CompilationUnit |
getKiePMMLModelCompilationUnit(String className,
String packageName,
String javaTemplate,
String modelClassName) |
public static final String MAIN_CLASS_NOT_FOUND
public static com.github.javaparser.ast.CompilationUnit getFromFileName(String fileName)
public static com.github.javaparser.ast.CompilationUnit getKiePMMLModelCompilationUnit(String className, String packageName, String javaTemplate, String modelClassName)
className - packageName - javaTemplate - the name of the file to be used as template sourcemodelClassName - the name of the class used in the provided templatepublic static String getFullClassName(com.github.javaparser.ast.CompilationUnit cu)
KiePMMLException if the package name is missingcu - Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.