Class LongConstant
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.numbers.NumericalExpression
public class LongConstant implements NumericalExpression
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisImmutableprivate final ReturnTypereturnTypeprivate final Longvalueprivate final List<Expression>subExpressionsprivate final List<Address>requiredRegistersprivate final List<Address>requiredMutableRegistersprivate final List<String>requiredFieldsprivate final List<Expression.Problem>problems
-
Constructor Summary
Constructors Constructor Description LongConstant(Long value)
-
Method Summary
Modifier and Type Method Description BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)ReturnTypegetReturnType()final LonggetValue()StringtoString()LonggetValueAsLong(SchemaDevice schemaDevice)NumericalExpression.ValueGuaranteegetGuarantee()-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getProblems, getRegisterValues, getRequiredFields, getRequiredMutableRegisters, getRequiredRegisters, getSubExpressions, initialize, toString -
Methods inherited from class nl.basjes.modbus.schema.expression.numbers.NumericalExpression
getValueAsDouble -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LongConstant
LongConstant(Long value)
-
-
Method Detail
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getReturnType
ReturnType getReturnType()
-
getValueAsLong
Long getValueAsLong(SchemaDevice schemaDevice)
- Returns:
The Long value or null if it was not implemented
-
getGuarantee
NumericalExpression.ValueGuarantee getGuarantee()
- Returns:
Can we guarantee anything about the return value?
-
-
-
-