Package org.kie.dmn.feel.codegen.feel11
Class CodegenStringUtil
- java.lang.Object
-
- org.kie.dmn.feel.codegen.feel11.CodegenStringUtil
-
public class CodegenStringUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description CodegenStringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanblockHasComment(com.github.javaparser.ast.stmt.BlockStmt block, String comment)static StringescapeIdentifier(String partOfIdentifier)Escape for identifier part (not beginning) Similar to drools-model's StringUtilstatic com.github.javaparser.ast.body.MethodDeclarationfindMethodTemplate(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration alphaNodeCreationClass, String methodName)static com.github.javaparser.ast.CompilationUnitparseJavaClassTemplateFromResources(Class<?> resourceClass, String templateName)static voidreplaceIntegerLiteralExprWith(com.github.javaparser.ast.Node source, int oldValue, int newValue)static voidreplaceSimpleNameWith(com.github.javaparser.ast.Node source, String oldName, String newName)static voidreplaceStringLiteralExprWith(com.github.javaparser.ast.Node source, String oldName, String newName)
-
-
-
Method Detail
-
escapeIdentifier
public static String escapeIdentifier(String partOfIdentifier)
Escape for identifier part (not beginning) Similar to drools-model's StringUtil
-
replaceSimpleNameWith
public static void replaceSimpleNameWith(com.github.javaparser.ast.Node source, String oldName, String newName)
-
replaceStringLiteralExprWith
public static void replaceStringLiteralExprWith(com.github.javaparser.ast.Node source, String oldName, String newName)
-
replaceIntegerLiteralExprWith
public static void replaceIntegerLiteralExprWith(com.github.javaparser.ast.Node source, int oldValue, int newValue)
-
blockHasComment
public static boolean blockHasComment(com.github.javaparser.ast.stmt.BlockStmt block, String comment)
-
parseJavaClassTemplateFromResources
public static com.github.javaparser.ast.CompilationUnit parseJavaClassTemplateFromResources(Class<?> resourceClass, String templateName)
-
findMethodTemplate
public static com.github.javaparser.ast.body.MethodDeclaration findMethodTemplate(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration alphaNodeCreationClass, String methodName)
-
-