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 Summary
-
Constructor Summary
ConstructorDescriptionTaintConfig
(List<Source> sources, List<Sink> sinks, List<TaintTransfer> transfers, List<ParamSanitizer> paramSanitizers, boolean callSiteMode) Creates an instance of aTaintConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecallSiteMode
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.mergeWith
(TaintConfig other) Merges this taint config with other taint config.Returns the value of theparamSanitizers
record component.sinks()
Returns the value of thesinks
record component.sources()
Returns the value of thesources
record component.toString()
Returns a string representation of this record class.Returns the value of thetransfers
record component.
-
Field Details
-
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 aTaintConfig
record class.- Parameters:
sources
- the value for thesources
record componentsinks
- the value for thesinks
record componenttransfers
- the value for thetransfers
record componentparamSanitizers
- the value for theparamSanitizers
record componentcallSiteMode
- the value for thecallSiteMode
record component
-
-
Method Details
-
mergeWith
Merges this taint config with other taint config.- Returns:
- a new merged taint config.
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
sources
Returns the value of thesources
record component.- Returns:
- the value of the
sources
record component
-
sinks
Returns the value of thesinks
record component.- Returns:
- the value of the
sinks
record component
-
transfers
Returns the value of thetransfers
record component.- Returns:
- the value of the
transfers
record component
-
paramSanitizers
Returns the value of theparamSanitizers
record component.- Returns:
- the value of the
paramSanitizers
record component
-
callSiteMode
public boolean callSiteMode()Returns the value of thecallSiteMode
record component.- Returns:
- the value of the
callSiteMode
record component
-