Class AbstractTermInterpreter
java.lang.Object
tools.refinery.language.expressions.AbstractTermInterpreter
- All Implemented Interfaces:
TermInterpreter
- Direct Known Subclasses:
BuiltinTermInterpreter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAggregator(AggregatorName aggregator, DataExprType type) protected voidaddAggregator(AggregatorName aggregator, DataExprType type, DataExprType result) protected voidaddBinaryOperator(BinaryOp op, DataExprType type) protected voidaddBinaryOperator(BinaryOp op, DataExprType leftType, DataExprType rightType, DataExprType result) protected voidaddCast(DataExprType fromType, DataExprType toType) protected voidaddComparison(DataExprType type) protected voidaddNegation(DataExprType type) protected voidaddNegation(DataExprType type, DataExprType result) protected voidaddRange(DataExprType type) protected voidaddUnaryOperator(UnaryOp op, DataExprType type) protected voidaddUnaryOperator(UnaryOp op, DataExprType type, DataExprType result) getAggregationType(AggregatorName aggregator, DataExprType type) getBinaryOperationType(BinaryOp op, DataExprType leftType, DataExprType rightType) getNegationType(DataExprType type) getUnaryOperationType(UnaryOp op, DataExprType type) booleanisCastSupported(DataExprType fromType, DataExprType toType) booleanbooleanisRangeSupported(DataExprType type)
-
Constructor Details
-
AbstractTermInterpreter
protected AbstractTermInterpreter()
-
-
Method Details
-
addNegation
-
addNegation
-
addUnaryOperator
-
addUnaryOperator
-
addComparison
-
addRange
-
addBinaryOperator
protected void addBinaryOperator(BinaryOp op, DataExprType leftType, DataExprType rightType, DataExprType result) -
addBinaryOperator
-
addCast
-
addAggregator
-
addAggregator
-
getNegationType
- Specified by:
getNegationTypein interfaceTermInterpreter
-
getUnaryOperationType
- Specified by:
getUnaryOperationTypein interfaceTermInterpreter
-
isComparisonSupported
- Specified by:
isComparisonSupportedin interfaceTermInterpreter
-
isRangeSupported
- Specified by:
isRangeSupportedin interfaceTermInterpreter
-
getBinaryOperationType
public Optional<DataExprType> getBinaryOperationType(BinaryOp op, DataExprType leftType, DataExprType rightType) - Specified by:
getBinaryOperationTypein interfaceTermInterpreter
-
getAggregationType
- Specified by:
getAggregationTypein interfaceTermInterpreter
-
isCastSupported
- Specified by:
isCastSupportedin interfaceTermInterpreter
-