Record Class FOFormulas.EvaluableReplacementResult<F extends FOFormula>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.formula.FOFormulas.EvaluableReplacementResult<F>
- Type Parameters:
F- the concrete formula type- Record Components:
retreatedFormula- the rewritten formulafunctionReplacement- the mapping from evaluable functions to placeholder logical termsatomReplacement- the mapping from computed predicates to their invokers
- Enclosing class:
FOFormulas
public static record FOFormulas.EvaluableReplacementResult<F extends FOFormula>(F extends FOFormula retreatedFormula, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement)
extends Record
Aggregates the mappings produced while replacing evaluable parts.
- Author:
- Florent Tornil, Guillaume Perution-Kihli
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluableReplacementResult(F retreatedFormula, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement) Creates an instance of aEvaluableReplacementResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatomReplacementrecord component.final booleanIndicates whether some other object is "equal to" this one.com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> Returns the value of thefunctionReplacementrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theretreatedFormularecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluableReplacementResult
public EvaluableReplacementResult(F retreatedFormula, com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement, com.google.common.collect.BiMap<Predicate, Invoker> atomReplacement) Creates an instance of aEvaluableReplacementResultrecord class.- Parameters:
retreatedFormula- the value for theretreatedFormularecord componentfunctionReplacement- the value for thefunctionReplacementrecord componentatomReplacement- the value for theatomReplacementrecord 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). -
retreatedFormula
Returns the value of theretreatedFormularecord component.- Returns:
- the value of the
retreatedFormularecord component
-
functionReplacement
public com.google.common.collect.BiMap<EvaluableFunction, LogicalFunctionalTerm> functionReplacement()Returns the value of thefunctionReplacementrecord component.- Returns:
- the value of the
functionReplacementrecord component
-
atomReplacement
Returns the value of theatomReplacementrecord component.- Returns:
- the value of the
atomReplacementrecord component
-