Class Add
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.numbers.NumericalExpression
public final class Add extends SubExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final StringoperatorSymbolprivate final ReturnTypereturnTypeprivate final List<Expression>subExpressionsprivate final List<Expression.Problem>problemsprivate final NumericalExpressionleftprivate final NumericalExpressionrightprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFieldsprivate BooleanisImmutable
-
Constructor Summary
Constructors Constructor Description Add(NumericalExpression left, NumericalExpression right)
-
Method Summary
Modifier and Type Method Description StringgetOperatorSymbol()ReturnTypegetReturnType()NumericalExpression.ValueGuaranteegetGuarantee()LonggetValueAsLong(SchemaDevice schemaDevice)DoublegetValueAsDouble(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.numbers.SubExpression
getLeft, getModbusValues, getProblems, getRight, getSubExpressions, toString, toString -
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, initialize, isImmutable, setImmutable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Add
Add(NumericalExpression left, NumericalExpression right)
-
-
Method Detail
-
getOperatorSymbol
String getOperatorSymbol()
-
getReturnType
ReturnType getReturnType()
-
getGuarantee
NumericalExpression.ValueGuarantee getGuarantee()
- Returns:
Can we guarantee anything about the return value?
-
getValueAsLong
Long getValueAsLong(SchemaDevice schemaDevice)
- Returns:
The Long value or null if it was not implemented
-
getValueAsDouble
Double getValueAsDouble(SchemaDevice schemaDevice)
- Returns:
The Double value or null if it was not implemented
-
-
-
-