Record Class LiteralImpl<T>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.logicalElements.impl.LiteralImpl<T>
- Type Parameters:
T- the native type of the Literal- Record Components:
value- the wrapped literal value
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.ILiteral, fr.inria.rules.dlgpemodel.api.elems.ITerm, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable, Literal<T>, Substitutable<Term>, Term
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.elems.ILiteral
BOOLEAN_LITERAL_TYPE, DOUBLE_LITERAL_TYPE, FLOAT_LITERAL_TYPE, INTEGER_LITERAL_TYPE, LONG_LITERAL_TYPE, STRING_LITERAL_TYPEFields 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//////////////////////////////////////////////final inthashCode()Returns a hash code value for this object.label()//////////////////////////////////////////////toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Literal
isGround, isLiteral, toStandardFormMethods inherited from interface Standardizable
toStandardFormMethods inherited from interface Term
applySubstitution, isConstant, isEvaluableFunction, isFrozen, isFunctionalTerm, isVariable
-
Constructor Details
-
LiteralImpl
-
-
Method Details
-
label
-
equals
-
toString
-
applySubstitution
Description copied from interface:TermApplies a substitution to this term.- Specified by:
applySubstitutionin interfaceLiteral<T>- Specified by:
applySubstitutionin interfaceSubstitutable<T>- Specified by:
applySubstitutionin interfaceTerm- Parameters:
substitution- the substitution to applyevaluate- whether nested evaluable functions should be evaluated- Returns:
- the substituted term
-
getRepresentation
- Specified by:
getRepresentationin interfacefr.inria.rules.dlgpemodel.api.elems.ILiteral
-
getDatatype
- Specified by:
getDatatypein interfacefr.inria.rules.dlgpemodel.api.elems.ILiteral
-
hashCode
-
value
-