A C G J L M O P R S
All Classes All Packages
All Classes All Packages
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
BlockStmtbody. - addMethod(MethodDeclaration, ClassOrInterfaceDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Add a
MethodDeclarationto the class - addMethodDeclarationsToClass(ClassOrInterfaceDeclaration, List<MethodDeclaration>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Add a
MethodDeclarations to the givenClassOrInterfaceDeclaration - addMethodDeclarationToClass(ClassOrInterfaceDeclaration, MethodDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Add a
MethodDeclarationto the givenClassOrInterfaceDeclaration - assignExprFrom(String, Expression) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return a new
AssignExprfrom a target name and a genericExpression. - assignExprFrom(String, Enum<?>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return a new
AssignExprfrom a target name and an enum literal. - assignExprFrom(String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return a new
AssignExprfrom a target name andStringliteral.
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
Mapin the givenBlockStmt - createLinkedHashMap(BlockStmt, String, List<String>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Declare and initialize a new
LinkedHashMapin the givenBlockStmt - createPopulatedHashMap(BlockStmt, String, List<String>, Map<String, Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Declare, initialize and populate a new
HashMapin the givenBlockStmt - createPopulatedLinkedHashMap(BlockStmt, String, List<String>, Map<String, Expression>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Declare, initialize and populate a new
LinkedHashMapin the givenBlockStmt
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 givenBlockStmt - getChainedMethodCallExprFrom(String, MethodCallExpr) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return a "chained"
MethodCallExprby 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 givenExplicitConstructorInvocationStmt - getExplicitConstructorInvocationParameter(ExplicitConstructorInvocationStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return an
Optional<NameExpr>from the givenExplicitConstructorInvocationStmt - getExplicitConstructorInvocationStmt(BlockStmt) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return an
Optional<ExplicitConstructorInvocationStmt>from the givenBlockStmt - getExpressionForObject(Object) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
- getFactoryClassNamePackageName(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
BlockStmtfrom the givenClassOrInterfaceDeclaration - getInitializerDeclaration(ClassOrInterfaceDeclaration) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return an
InitializerDeclarationfrom the givenClassOrInterfaceDeclaration - getMethodDeclaration(ClassOrInterfaceDeclaration, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return an
Optional<MethodDeclaration>with the first method methodName from the givenClassOrInterfaceDeclaration - 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
BlockStmtfor the method methodName from the givenClassOrInterfaceDeclaration - 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
Stringin 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 givenMethodDeclaration - getVariableDeclarator(BlockStmt, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return an
Optional<VariableDeclarator>with the first variable variableName from the givenBlockStmt - 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
Expressioncontaining an enum literal. - literalExprFrom(String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Return a new
Expressioncontaining anString.
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
MethodCallExprfrom 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
Listinside a getter method meant to return only thatList - populateMethodDeclarations(ClassOrInterfaceDeclaration, Collection<MethodDeclaration>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Populate the
ClassOrInterfaceDeclarationwith the providedMethodDeclarations
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 givenStatementwithNullLiteralExpr - replaceNodeInStatement(Statement, CommonCodegenUtils.ReplacementTupla) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Replace
Nodein the givenStatement - replaceNodesInStatement(Statement, List<CommonCodegenUtils.ReplacementTupla>) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Replace
Nodes in the givenStatement - replaceStringLiteralExpressionInStatement(Statement, String, String) - Static method in class org.kie.efesto.common.utils.CommonCodegenUtils
-
Replace
StringLiteralExpresions in the givenStatement
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
BlockStmtIt throwsKieEfestoCommonExceptionif 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
BlockStmtIt throwsKieEfestoCommonExceptionif variable is not found
All Classes All Packages