Class ExternalSinkModels

java.lang.Object
org.openrewrite.analysis.dataflow.ExternalSinkModels

@Incubating(since="7.25.0") public final class ExternalSinkModels extends Object
  • Constructor Details

    • ExternalSinkModels

      public ExternalSinkModels()
  • Method Details

    • getInstance

      @Deprecated public static ExternalSinkModels getInstance()
      Deprecated.
      Use instance() instead.
    • instance

      public static ExternalSinkModels instance()
    • isSinkNode

      public boolean isSinkNode(DataFlowNode sinkNode, String kind)
      True if the expression cursor is specified as a sink with the given kind in the CSV flow model.

      Accepts the legacy sink-kind names used before CodeQL standardized its threat-model taxonomy (see DEPRECATED_KIND_ALIASES), so callers written against the older model keep matching. Prefer the current names.

      Returns:
      If this is a sink of the given kind.