Class AbstractTermInterpreter
java.lang.Object
tools.refinery.language.expressions.AbstractTermInterpreter
- All Implemented Interfaces:
TermInterpreter
- Direct Known Subclasses:
BuiltinTermInterpreter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAggregator
(AggregatorName aggregator, DataExprType type) protected void
addAggregator
(AggregatorName aggregator, DataExprType type, DataExprType result) protected void
addBinaryOperator
(BinaryOp op, DataExprType type) protected void
addBinaryOperator
(BinaryOp op, DataExprType leftType, DataExprType rightType, DataExprType result) protected void
addCast
(DataExprType fromType, DataExprType toType) protected void
addComparison
(DataExprType type) protected void
addNegation
(DataExprType type) protected void
addNegation
(DataExprType type, DataExprType result) protected void
addRange
(DataExprType type) protected void
addUnaryOperator
(UnaryOp op, DataExprType type) protected void
addUnaryOperator
(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) boolean
isCastSupported
(DataExprType fromType, DataExprType toType) boolean
boolean
isRangeSupported
(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:
getNegationType
in interfaceTermInterpreter
-
getUnaryOperationType
- Specified by:
getUnaryOperationType
in interfaceTermInterpreter
-
isComparisonSupported
- Specified by:
isComparisonSupported
in interfaceTermInterpreter
-
isRangeSupported
- Specified by:
isRangeSupported
in interfaceTermInterpreter
-
getBinaryOperationType
public Optional<DataExprType> getBinaryOperationType(BinaryOp op, DataExprType leftType, DataExprType rightType) - Specified by:
getBinaryOperationType
in interfaceTermInterpreter
-
getAggregationType
- Specified by:
getAggregationType
in interfaceTermInterpreter
-
isCastSupported
- Specified by:
isCastSupported
in interfaceTermInterpreter
-