90479684574a001c5a5cf60ad30f02d11f6c0e98
Files Diff
- Added: 43
- Removed: 0
- Renamed: 0
- Modified: 82
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private nameExpr(drlxExpr Expression, firstNode NameExpr, isInLineCast boolean, originalTypeCursor Type) : Optional<TypedExpressionCursor> renamed to private drlNameExpr(drlxExpr Expression, firstNode DrlNameExpr, isInLineCast boolean, originalTypeCursor Type) : Optional<TypedExpressionCursor> in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type firstNode : NameExpr to firstNode : DrlNameExpr in method private drlNameExpr(drlxExpr Expression, firstNode DrlNameExpr, isInLineCast boolean, originalTypeCursor Type) : Optional<TypedExpressionCursor> in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Change Parameter Type nameExpr : NameExpr to nameExpr : DrlNameExpr in method private parseNameExpr(nameExpr DrlNameExpr, patternType Class<?>, bindingId String, drlxExpr Expression, hasBind boolean, expression String, exprId String) : DrlxParseResult in class org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser | From | To | |
Change Parameter Type drlxExpr : Expression to name : String in method private nameExpr(name String, typeCursor Class<?>) : Optional<TypedExpression> in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Rename Variable | 1 | ||
Rename Variable firstMethod : MethodCallExpr to me : MethodCallExpr in method private toTypedExpressionFromMethodCallOrField(drlxExpr Expression) : TypedExpressionResult in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Change Return Type | 1 | ||
Change Return Type org.drools.javaparser.ast.type.Type to com.github.javaparser.ast.type.Type in method public getType() : com.github.javaparser.ast.type.Type in class org.drools.modelcompiler.builder.generator.DeclarationSpec | From | To | |
Parameterize Variable | 3 | ||
Parameterize Variable bindingId : String to name : String in method private contextHasDeclaration(name String) : boolean in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Parameterize Variable argumentName : String to name : String in method private contextHasDeclaration(name String) : boolean in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Extract Variable | 2 | ||
Extract Variable expr : Expression in method private toTypedExpressionRec(drlxExpr Expression) : Optional<TypedExpression> from class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Change Attribute Type | 5 | ||
Change Attribute Type ListT : org.drools.javaparser.ast.type.Type to ListT : com.github.javaparser.ast.type.Type in class org.kie.dmn.feel.codegen.feel11.Constants | From | To | |
Change Attribute Type TYPE_LIST : org.drools.javaparser.ast.type.Type to TYPE_LIST : com.github.javaparser.ast.type.Type in class org.kie.dmn.feel.codegen.feel11.DirectCompilerVisitor | From | To | |
Change Attribute Type TYPE_BOOLEAN : org.drools.javaparser.ast.type.Type to TYPE_BOOLEAN : com.github.javaparser.ast.type.Type in class org.kie.dmn.feel.codegen.feel11.DirectCompilerVisitor | From | To | |
Change Attribute Type TYPE_BIG_DECIMAL : org.drools.javaparser.ast.type.Type to TYPE_BIG_DECIMAL : com.github.javaparser.ast.type.Type in class org.kie.dmn.feel.codegen.feel11.DirectCompilerVisitor | From | To | |
Change Attribute Type TYPE_COMPARABLE : org.drools.javaparser.ast.type.Type to TYPE_COMPARABLE : com.github.javaparser.ast.type.Type in class org.kie.dmn.feel.codegen.feel11.DirectCompilerVisitor | From | To | |
Extract Method | 9 | ||
Extract Method private contextHasDeclaration(name String) : boolean extracted from private fromConstructorExpr(expression String, parsedExpression ObjectCreationExpr) : Optional<Expression> in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Extract Method private parseMethodCallExpr(methodCallExpr MethodCallExpr, originalTypeCursor Type) : TypedExpressionCursor extracted from private methodCallExpr(methodCallExpr MethodCallExpr, originalTypeCursor Type, scope Expression) : TypedExpressionCursor in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Extract Method private isEval(nameAsString String, scope Optional<Expression>, arguments NodeList<Expression>) : boolean extracted from private toTypedExpressionRec(drlxExpr Expression) : Optional<TypedExpression> in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Extract Method private expressionTypeNameExpr(context RuleContext, usedDeclarations Collection<String>, nameAsString String) : Type extracted from public getExpressionType(context RuleContext, typeResolver TypeResolver, expr Expression, usedDeclarations Collection<String>) : Type in class org.drools.modelcompiler.builder.generator.DrlxParseUtil | From | To | |
Extract Method private contextHasDeclaration(name String) : boolean extracted from private fromFieldOrName(expression String) : Optional<Expression> in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Extract Method private addReactOnProperty(methodName String, methodArguments NodeList<Expression>) : void extracted from private toTypedExpressionFromMethodCallOrField(drlxExpr Expression) : TypedExpressionResult in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To | |
Extract Method private contextHasDeclaration(name String) : boolean extracted from private fromExpressionUsingArguments(expression String, methodCallExpr NodeWithArguments<?>) : Optional<Expression> in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Extract Method private contextHasDeclaration(name String) : boolean extracted from private fromExpressionViaScope(expression String, methodCallExpr Expression) : Optional<Expression> in class org.drools.modelcompiler.builder.generator.visitor.FromVisitor | From | To | |
Rename Parameter | 1 | ||
Rename Parameter drlxExpr : Expression to name : String in method private nameExpr(name String, typeCursor Class<?>) : Optional<TypedExpression> in class org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper | From | To |