Class BooleanConstant
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.booleans.BooleanExpression
public class BooleanConstant implements BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisImmutableprivate final ReturnTypereturnTypeprivate final Stringvalueprivate final List<Expression>subExpressionsprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFieldsprivate final List<Expression.Problem>problems
-
Constructor Summary
Constructors Constructor Description BooleanConstant(String value)
-
Method Summary
Modifier and Type Method Description BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)ReturnTypegetReturnType()final StringgetValue()StringtoString()BooleangetBoolean(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getModbusValues, getProblems, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, getSubExpressions, initialize, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BooleanConstant
BooleanConstant(String value)
-
-
Method Detail
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getReturnType
ReturnType getReturnType()
-
getBoolean
Boolean getBoolean(SchemaDevice schemaDevice)
- Returns:
The boolean value or null in case of problems (like this is not a discretes address)
-
-
-
-