Package pascal.taie.config
Record Class Plan
java.lang.Object
java.lang.Record
pascal.taie.config.Plan
- Record Components:
analyses
- list of analyses to be executed.dependenceGraph
- graph that describes dependencies among analyses. This graph is used to clear unused analysis results.keepResult
- set of IDs for the analyses whose results are kept.
public record Plan(List<AnalysisConfig> analyses, Graph<AnalysisConfig> dependenceGraph, Set<String> keepResult)
extends Record
Contains information about analysis execution plan.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlan
(List<AnalysisConfig> analyses, Graph<AnalysisConfig> dependenceGraph, Set<String> keepResult) Creates an instance of aPlan
record class. -
Method Summary
Modifier and TypeMethodDescriptionanalyses()
Returns the value of theanalyses
record component.Returns the value of thedependenceGraph
record component.static Plan
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thekeepResult
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
KEEP_ALL
Special element forkeepResult
, which means to keep results of all analyses.- See Also:
-
-
Constructor Details
-
Plan
public Plan(List<AnalysisConfig> analyses, Graph<AnalysisConfig> dependenceGraph, Set<String> keepResult) Creates an instance of aPlan
record class.- Parameters:
analyses
- the value for theanalyses
record componentdependenceGraph
- the value for thedependenceGraph
record componentkeepResult
- the value for thekeepResult
record component
-
-
Method Details
-
emptyPlan
- Returns:
- an empty plan.
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
analyses
Returns the value of theanalyses
record component.- Returns:
- the value of the
analyses
record component
-
dependenceGraph
Returns the value of thedependenceGraph
record component.- Returns:
- the value of the
dependenceGraph
record component
-
keepResult
Returns the value of thekeepResult
record component.- Returns:
- the value of the
keepResult
record component
-