Record Class TaintConfig

java.lang.Object
java.lang.Record
pascal.taie.analysis.pta.plugin.taint.TaintConfig

public record TaintConfig(List<Source> sources, List<Sink> sinks, List<TaintTransfer> transfers, List<ParamSanitizer> paramSanitizers, boolean callSiteMode) extends Record
Configuration for taint analysis.
  • Field Details

    • EMPTY

      public static final TaintConfig EMPTY
      An empty taint config.
  • Constructor Details

    • TaintConfig

      public TaintConfig(List<Source> sources, List<Sink> sinks, List<TaintTransfer> transfers, List<ParamSanitizer> paramSanitizers, boolean callSiteMode)
      Creates an instance of a TaintConfig record class.
      Parameters:
      sources - the value for the sources record component
      sinks - the value for the sinks record component
      transfers - the value for the transfers record component
      paramSanitizers - the value for the paramSanitizers record component
      callSiteMode - the value for the callSiteMode record component
  • Method Details

    • mergeWith

      public TaintConfig mergeWith(TaintConfig other)
      Merges this taint config with other taint config.
      Returns:
      a new merged taint config.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sources

      public List<Source> sources()
      Returns the value of the sources record component.
      Returns:
      the value of the sources record component
    • sinks

      public List<Sink> sinks()
      Returns the value of the sinks record component.
      Returns:
      the value of the sinks record component
    • transfers

      public List<TaintTransfer> transfers()
      Returns the value of the transfers record component.
      Returns:
      the value of the transfers record component
    • paramSanitizers

      public List<ParamSanitizer> paramSanitizers()
      Returns the value of the paramSanitizers record component.
      Returns:
      the value of the paramSanitizers record component
    • callSiteMode

      public boolean callSiteMode()
      Returns the value of the callSiteMode record component.
      Returns:
      the value of the callSiteMode record component