Record Class FONegationImpl
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.formula.impl.FONegationImpl
- Record Components:
element- the negated formula
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.formulas.IFormula, fr.inria.rules.dlgpemodel.api.formulas.INegation, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, FOFormula, FOFormulaNegation, Substitutable<FOFormula>, TermCompound
Default implementation of a FOFormulaNegation
- Author:
- Florent Tornil
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplySubstitution(Substitution substitution, boolean evaluate) Applies a substitution to this formula.copy()Creates a deep copy of this formula.element()Returns the value of theelementrecord component.boolean////////////////////////////////////////////////////////////////////////////////////////////getTerms()Streams the first-level terms contained in this object.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.Methods inherited from interface FOFormula
asBooleanQuery, isAtomic, isConjunction, isDisjunctionMethods inherited from interface FOFormulaNegation
applySubstitution, asAtomSet, getConstants, getLiterals, getPredicates, getVariables, isNegationMethods inherited from interface fr.inria.rules.dlgpemodel.api.formulas.INegation
exportsMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface TermCompound
getAllNestedTerms, getNestedTerms
-
Constructor Details
-
FONegationImpl
Constructor with a sub element- Parameters:
element- the sub element
-
-
Method Details
-
getElement
//////////////////////////////////////////////- Specified by:
getElementin interfacefr.inria.rules.dlgpemodel.api.formulas.INegation
-
equals
-
toString
-
applySubstitution
Description copied from interface:FOFormulaApplies a substitution to this formula.- Specified by:
applySubstitutionin interfaceFOFormula- Specified by:
applySubstitutionin interfaceFOFormulaNegation- Specified by:
applySubstitutionin interfaceSubstitutable<FOFormula>- Parameters:
substitution- the substitution to applyevaluate- whether evaluable functions should be evaluated- Returns:
- the substituted formula
-
getTerms
Description copied from interface:TermCompoundStreams the first-level terms contained in this object.- Specified by:
getTermsin interfaceTermCompound- Returns:
- a stream over all the non-nested terms (i.e., all terms that are not themselves in a compound term) For instance, for p(a,g(b)), it returns a and g(b) but not b.
-
copy
Description copied from interface:FOFormulaCreates a deep copy of this formula. -
hashCode
-
element
Returns the value of theelementrecord component.- Specified by:
elementin interfaceFOFormulaNegation- Returns:
- the value of the
elementrecord component
-