A C G J L M O P R S 
All Classes All Packages

A

addListPopulationByMethodCallExpr(List<MethodCallExpr>, BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
For every entry in the given list, add
addListPopulationByObjectCreationExpr(List<ObjectCreationExpr>, BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
For every entry in the given list, add
addMapPopulation(Map<String, MethodDeclaration>, BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
For every entry in the given map, add
addMapPopulationExpressions(Map<String, Expression>, BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
For every entry in the given map, add a "put" statement to the provided BlockStmt body.
addMethod(MethodDeclaration, ClassOrInterfaceDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Add a MethodDeclaration to the class
addMethodDeclarationsToClass(ClassOrInterfaceDeclaration, List<MethodDeclaration>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Add a MethodDeclarations to the given ClassOrInterfaceDeclaration
addMethodDeclarationToClass(ClassOrInterfaceDeclaration, MethodDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Add a MethodDeclaration to the given ClassOrInterfaceDeclaration
assignExprFrom(String, Expression) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new AssignExpr from a target name and a generic Expression.
assignExprFrom(String, Enum<?>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new AssignExpr from a target name and an enum literal.
assignExprFrom(String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new AssignExpr from a target name and String literal.

C

CommonCodegenUtils - Class in org.kie.efesto.common.utils
Class meant to provide helper methods to all code-generating classes
CommonCodegenUtils.ReplacementTupla - Class in org.kie.efesto.common.utils
 
createArraysAsListExpression() - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Create an empty Arrays.asList() ExpressionStmt
createArraysAsListFromList(List<?>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Create a populated Arrays.asList(?...
createHashMap(BlockStmt, String, List<String>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Declare and initialize a new Map in the given BlockStmt
createLinkedHashMap(BlockStmt, String, List<String>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Declare and initialize a new LinkedHashMap in the given BlockStmt
createPopulatedHashMap(BlockStmt, String, List<String>, Map<String, Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Declare, initialize and populate a new HashMap in the given BlockStmt
createPopulatedLinkedHashMap(BlockStmt, String, List<String>, Map<String, Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Declare, initialize and populate a new LinkedHashMap in the given BlockStmt

G

getArraysAsListInvocation(NodeList<Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
 
getArraysAsListInvocationMethodCall(NodeList<Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
 
getAssignExpression(BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<AssignExpr> with the given assignExpressionName from the given BlockStmt
getChainedMethodCallExprFrom(String, MethodCallExpr) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a "chained" MethodCallExpr by name parent one.
getCompilationUnit(String, String, String, String) - Static method in class org.kie.efesto.common.utils.JavaParserUtils
 
getExplicitConstructorInvocationMethodReference(ExplicitConstructorInvocationStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<MethodReferenceExpr> from the given ExplicitConstructorInvocationStmt
getExplicitConstructorInvocationParameter(ExplicitConstructorInvocationStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<NameExpr> from the given ExplicitConstructorInvocationStmt
getExplicitConstructorInvocationStmt(BlockStmt) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<ExplicitConstructorInvocationStmt> from the given BlockStmt
getExpressionForObject(Object) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
 
getFactoryClassNamePackageName(String, String) - Static method in class org.kie.efesto.common.utils.PackageClassNameUtils
Returns an array where the first item is the factory class name and the second item is the package name, built starting from the given sourcePath String
getFullClassName(CompilationUnit) - Static method in class org.kie.efesto.common.utils.JavaParserUtils
Return the fully qualified name of the generated class.
getInitializerBlockStmt(ClassOrInterfaceDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an BlockStmt from the given ClassOrInterfaceDeclaration
getInitializerDeclaration(ClassOrInterfaceDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an InitializerDeclaration from the given ClassOrInterfaceDeclaration
getMethodDeclaration(ClassOrInterfaceDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<MethodDeclaration> with the first method methodName from the given ClassOrInterfaceDeclaration
getMethodDeclaration(String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Returns
getMethodDeclaration(String, Map<String, ClassOrInterfaceType>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Returns
getMethodDeclarationBlockStmt(ClassOrInterfaceDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an BlockStmt for the method methodName from the given ClassOrInterfaceDeclaration
getNameExprsFromBlock(BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a lit<NameExpr> with all the instances of the given exprName
getOptionalVariableInitializer(MethodDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Retrieve the initializer of the given variableName from the given MethodDeclaration
getReturnStmt(String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Returns
getSanitizedClassName(String) - Static method in class org.kie.efesto.common.utils.PackageClassNameUtils
Convert the given String in a valid class name (i.e. no dots, no spaces, first letter upper case)
getSanitizedPackageName(String) - Static method in class org.kie.efesto.common.utils.PackageClassNameUtils
Method to be used by every KiePMML implementation to retrieve the package name out of the model name
getSuperConstructorInvocation(ConstructorDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
 
getTypedClassOrInterfaceTypeByTypeNames(String, List<String>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Returns
getTypedClassOrInterfaceTypeByTypes(String, List<Type>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Returns
getVariableDeclarator(MethodDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<VariableDeclarator> with the first variable variableName from the given MethodDeclaration
getVariableDeclarator(BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return an Optional<VariableDeclarator> with the first variable variableName from the given BlockStmt
getVariableInitializer(MethodDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Retrieve the initializer of the given variableName from the given MethodDeclaration
getVariableInitializer(BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Retrieve the initializer of the given variableName from the given MethodDeclaration

J

JavaParserUtils - Class in org.kie.efesto.common.utils
 

L

literalExprFrom(Enum<?>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new Expression containing an enum literal.
literalExprFrom(String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new Expression containing an String.

M

MAIN_CLASS_NOT_FOUND - Static variable in class org.kie.efesto.common.utils.JavaParserUtils
 
methodCallExprFrom(String, String, Expression...) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Return a new MethodCallExpr from scope, name and arguments.

O

OPTIONAL_FILTERED_KIEPMMLNAMEVALUE_NAME - Static variable in class org.kie.efesto.common.utils.CommonCodegenUtils
 
org.kie.efesto.common.utils - package org.kie.efesto.common.utils
 

P

PackageClassNameUtils - Class in org.kie.efesto.common.utils
 
populateListInListGetter(List<? extends Expression>, MethodDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Method to be used to populate a List inside a getter method meant to return only that List
populateMethodDeclarations(ClassOrInterfaceDeclaration, Collection<MethodDeclaration>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Populate the ClassOrInterfaceDeclaration with the provided MethodDeclarations

R

ReplacementTupla(Node, Node) - Constructor for class org.kie.efesto.common.utils.CommonCodegenUtils.ReplacementTupla
 
replaceNameExprWithNullInStatement(Statement, List<NameExpr>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Replace the List<NameExpr>s in the given Statement with NullLiteralExpr
replaceNodeInStatement(Statement, CommonCodegenUtils.ReplacementTupla) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Replace Node in the given Statement
replaceNodesInStatement(Statement, List<CommonCodegenUtils.ReplacementTupla>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Replace Nodes in the given Statement
replaceStringLiteralExpressionInStatement(Statement, String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Replace StringLiteralExpresions in the given Statement

S

setAssignExpressionValue(BlockStmt, String, Expression) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Set the value of the variable with the given assignExpressionName in the given BlockStmt It throws KieEfestoCommonException if variable is not found
setConstructorDeclarationParameterArgument(ConstructorDeclaration, String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Set the value of the given parameterName in the given ConstructorDeclaration
setConstructorDeclarationReferenceArgument(ConstructorDeclaration, String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Set the value of the given parameterName in the given ConstructorDeclaration
setExplicitConstructorInvocationStmtArgument(ExplicitConstructorInvocationStmt, String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Set the value of the given parameterName in the given ExplicitConstructorInvocationStmt
setVariableDeclaratorValue(BlockStmt, String, Expression) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
Set the value of the variable with the given variableDeclaratorName in the given BlockStmt It throws KieEfestoCommonException if variable is not found
A C G J L M O P R S 
All Classes All Packages