Class CompositeTermInterpreter
java.lang.Object
tools.refinery.language.expressions.CompositeTermInterpreter
- All Implemented Interfaces:
TermInterpreter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBinaryOperator
(BinaryOp op, DataExprType leftType, DataExprType rightType, AnyTerm left, AnyTerm right) createCast
(DataExprType fromType, DataExprType toType, AnyTerm body) createComparison
(ComparisonOp op, DataExprType type, AnyTerm left, AnyTerm right) createError
(DataExprType type) createLatticeOperator
(LatticeBinaryOp op, DataExprType type, AnyTerm left, AnyTerm right) createNegation
(DataExprType type, AnyTerm body) createOverloadedFunctionCall
(PrimitiveName primitive, List<DataExprType> argumentTypes, List<AnyTerm> arguments) createRange
(DataExprType type, AnyTerm left, AnyTerm right) createUnaryOperator
(UnaryOp op, DataExprType type, AnyTerm body) createUnknown
(DataExprType type) getAggregationType
(AggregatorName aggregator, DataExprType type) getAggregator
(AggregatorName aggregator, DataExprType type) getBinaryOperatorType
(BinaryOp op, DataExprType leftType, DataExprType rightType) getDomain
(DataExprType type) getNegationType
(DataExprType type) getOverloadedSignature
(PrimitiveName primitive, List<@Nullable DataExprType> argumentTypes) getUnaryOperationType
(UnaryOp op, DataExprType type) boolean
isCastSupported
(DataExprType fromType, DataExprType toType) boolean
isComparable
(DataExprType type) serialize
(DataExprType type, Object value)
-
Constructor Details
-
CompositeTermInterpreter
-
-
Method Details
-
getNegationType
- Specified by:
getNegationType
in interfaceTermInterpreter
-
getDomain
- Specified by:
getDomain
in interfaceTermInterpreter
-
createNegation
- Specified by:
createNegation
in interfaceTermInterpreter
-
createRange
- Specified by:
createRange
in interfaceTermInterpreter
-
createUnaryOperator
- Specified by:
createUnaryOperator
in interfaceTermInterpreter
-
createBinaryOperator
public Optional<AnyTerm> createBinaryOperator(BinaryOp op, DataExprType leftType, DataExprType rightType, AnyTerm left, AnyTerm right) - Specified by:
createBinaryOperator
in interfaceTermInterpreter
-
getUnaryOperationType
- Specified by:
getUnaryOperationType
in interfaceTermInterpreter
-
isComparable
- Specified by:
isComparable
in interfaceTermInterpreter
-
createComparison
public Optional<Term<TruthValue>> createComparison(ComparisonOp op, DataExprType type, AnyTerm left, AnyTerm right) - Specified by:
createComparison
in interfaceTermInterpreter
-
createLatticeOperator
public Optional<AnyTerm> createLatticeOperator(LatticeBinaryOp op, DataExprType type, AnyTerm left, AnyTerm right) - Specified by:
createLatticeOperator
in interfaceTermInterpreter
-
getBinaryOperatorType
public Optional<DataExprType> getBinaryOperatorType(BinaryOp op, DataExprType leftType, DataExprType rightType) - Specified by:
getBinaryOperatorType
in interfaceTermInterpreter
-
isCastSupported
- Specified by:
isCastSupported
in interfaceTermInterpreter
-
createCast
- Specified by:
createCast
in interfaceTermInterpreter
-
getAggregationType
- Specified by:
getAggregationType
in interfaceTermInterpreter
-
getAggregator
- Specified by:
getAggregator
in interfaceTermInterpreter
-
getOverloadedSignature
public Optional<Signature> getOverloadedSignature(PrimitiveName primitive, List<@Nullable DataExprType> argumentTypes) - Specified by:
getOverloadedSignature
in interfaceTermInterpreter
-
createOverloadedFunctionCall
public Optional<AnyTerm> createOverloadedFunctionCall(PrimitiveName primitive, List<DataExprType> argumentTypes, List<AnyTerm> arguments) - Specified by:
createOverloadedFunctionCall
in interfaceTermInterpreter
-
createUnknown
- Specified by:
createUnknown
in interfaceTermInterpreter
-
createError
- Specified by:
createError
in interfaceTermInterpreter
-
createNegativeInfinity
- Specified by:
createNegativeInfinity
in interfaceTermInterpreter
-
createPositiveInfinity
- Specified by:
createPositiveInfinity
in interfaceTermInterpreter
-
serialize
- Specified by:
serialize
in interfaceTermInterpreter
-