Class SQLTableInjectionFilterTransform

java.lang.Object
io.codemodder.remediation.sqlinjection.SQLTableInjectionFilterTransform

public final class SQLTableInjectionFilterTransform extends Object
Wrap table name parameters in SQL queries with an alphanumeric blacklist filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    findAndFix(com.github.javaparser.ast.expr.MethodCallExpr call)
     
    static boolean
    fix(com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr call)
     
    static boolean
    fix(com.github.javaparser.ast.expr.MethodCallExpr call)
     
    static boolean
    matchCall(com.github.javaparser.ast.expr.MethodCallExpr call)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • matchCall

      public static boolean matchCall(com.github.javaparser.ast.expr.MethodCallExpr call)
    • fix

      public static boolean fix(com.github.javaparser.ast.expr.MethodCallExpr call)
    • fix

      public static boolean fix(com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr call)
    • findAndFix

      public static boolean findAndFix(com.github.javaparser.ast.expr.MethodCallExpr call)