Record Class ConstantImpl
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.logicalElements.impl.ConstantImpl
- Record Components:
label- the constant label
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.IConstant, fr.inria.rules.dlgpemodel.api.elems.ITerm, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable, Constant, Substitutable<Term>, Term
-
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 term.boolean//////////////////////////////////////////////getName()final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.toString()Returns a string representation of this record class.Methods inherited from interface Constant
isConstant, isGround, toStandardFormMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Standardizable
toStandardFormMethods inherited from interface Term
applySubstitution, isEvaluableFunction, isFrozen, isFunctionalTerm, isLiteral, isVariable
-
Constructor Details
-
ConstantImpl
Constructor using a simple label- Parameters:
label- the string representation of the constant
-
-
Method Details
-
equals
-
toString
-
applySubstitution
Description copied from interface:TermApplies a substitution to this term.- Specified by:
applySubstitutionin interfaceConstant- Specified by:
applySubstitutionin interfaceSubstitutable<Term>- Specified by:
applySubstitutionin interfaceTerm- Parameters:
substitution- the substitution to applyevaluate- whether nested evaluable functions should be evaluated- Returns:
- the substituted term
-
getName
- Specified by:
getNamein interfacefr.inria.rules.dlgpemodel.api.elems.IConstant
-
hashCode
-
label
-