Class CustomBuiltInLiteral
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Literal
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.BuiltInLiteral
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.CustomBuiltInLiteral
Implementation of non-standard built-in literals. That is, built-in literals that are not the usual arithmetic
comparisons.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(LogicSchemaVisitor<T> visitor) applySubstitution
(Substitution substitution) Constructs newLiteral
after applying the substitution to the literal terms.Returns the built-in literal operation name.getTerms()
toString()
Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Literal
buildNegatedLiteral, canBeNegated, getArity, getUsedVariables, isGround
-
Constructor Details
-
CustomBuiltInLiteral
-
-
Method Details
-
getOperationName
Description copied from class:BuiltInLiteral
Returns the built-in literal operation name.- Specified by:
getOperationName
in classBuiltInLiteral
- Returns:
- the operation name.
-
getTerms
-
applySubstitution
Description copied from class:Literal
Constructs newLiteral
after applying the substitution to the literal terms.- Specified by:
applySubstitution
in classLiteral
- Parameters:
substitution
- substitution to apply.- Returns:
- a literal after applying the given substitution. The literal will be new if some term has changed, otherwise it will be the same.
-
accept
-
toString
-