Class SQLParameterizer

java.lang.Object
io.codemodder.codemods.SQLParameterizer

public final class SQLParameterizer extends Object
Contains most of the logic for detecting and fixing parameterizable SQL statements for a given MethodCallExpr.
  • Constructor Details

    • SQLParameterizer

      public SQLParameterizer(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr)
  • Method Details

    • checkAndFix

      public boolean checkAndFix()
      Checks if methodCall is a query call that needs to be fixed and fixes if that's the case.