Record Class RuleCompilationResult
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.ruleCompilation.api.RuleCompilationResult
- Record Components:
compilation- the compilation that was producedoriginalRuleSet- the original set of rulescompilableRules- the rules that could be compilednonCompilableRules- the rules that could not be compiled
public record RuleCompilationResult(RuleCompilation compilation, Collection<FORule> originalRuleSet, Collection<FORule> compilableRules, Collection<FORule> nonCompilableRules)
extends Record
Result of compiling a rule base.
-
Constructor Summary
ConstructorsConstructorDescriptionRuleCompilationResult(RuleCompilation compilation, Collection<FORule> originalRuleSet, Collection<FORule> compilableRules, Collection<FORule> nonCompilableRules) Creates an instance of aRuleCompilationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilableRulesrecord component.Returns the value of thecompilationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenonCompilableRulesrecord component.Returns the value of theoriginalRuleSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuleCompilationResult
public RuleCompilationResult(RuleCompilation compilation, Collection<FORule> originalRuleSet, Collection<FORule> compilableRules, Collection<FORule> nonCompilableRules) Creates an instance of aRuleCompilationResultrecord class.- Parameters:
compilation- the value for thecompilationrecord componentoriginalRuleSet- the value for theoriginalRuleSetrecord componentcompilableRules- the value for thecompilableRulesrecord componentnonCompilableRules- the value for thenonCompilableRulesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
compilation
Returns the value of thecompilationrecord component.- Returns:
- the value of the
compilationrecord component
-
originalRuleSet
Returns the value of theoriginalRuleSetrecord component.- Returns:
- the value of the
originalRuleSetrecord component
-
compilableRules
Returns the value of thecompilableRulesrecord component.- Returns:
- the value of the
compilableRulesrecord component
-
nonCompilableRules
Returns the value of thenonCompilableRulesrecord component.- Returns:
- the value of the
nonCompilableRulesrecord component
-