Package tools.refinery.logic.term
Class UnaryTerm<R,T>
java.lang.Object
tools.refinery.logic.term.AbstractTerm<R>
tools.refinery.logic.term.UnaryTerm<R,T>
- Direct Known Subclasses:
BoolNotTerm
,IntToRealTerm
,IntUnaryTerm
,RealToIntTerm
,RealUnaryTerm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructWithBody
(Term<T> newBody) protected abstract R
doEvaluate
(T bodyValue) boolean
equalsWithSubstitution
(LiteralEqualityHelper helper, AnyTerm other) getBody()
getInputVariables
(Set<? extends Variable> positiveVariablesInClause) getPrivateVariables
(Set<? extends Variable> positiveVariablesInClause) int
reduce()
rewriteSubTerms
(TermRewriter termRewriter) substitute
(Substitution substitution) Methods inherited from class tools.refinery.logic.term.AbstractTerm
equals, getType, hashCode
-
Constructor Details
-
UnaryTerm
-
-
Method Details
-
getBodyType
-
getBody
-
evaluate
-
doEvaluate
-
reduce
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitution
in interfaceAnyTerm
- Overrides:
equalsWithSubstitution
in classAbstractTerm<R>
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitution
in interfaceAnyTerm
- Overrides:
hashCodeWithSubstitution
in classAbstractTerm<R>
-
rewriteSubTerms
-
substitute
-
withBody
-
constructWithBody
-
getVariables
-
getInputVariables
-
getPrivateVariables
-