Class ExpressionColumns

java.lang.Object
dev.frostlake.executor.ExpressionColumns

public final class ExpressionColumns extends Object
Whether a projection expression NAMES a given column — read from the expression's own tokens, the way MaskingPolicyApplier rewrites references, so a name inside a string literal and a same-named function call are both left out of it.
  • Method Details

    • references

      public static boolean references(String expression, String columnName)
      Parameters:
      expression - the projection expression as written (A, t.A, UPPER(A))
      columnName - the column to look for
      Returns:
      true when the expression references that column