Class StringFromBoolean
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.strings.StringExpression
public final class StringFromBoolean implements StringExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Expression>subExpressionsprivate final List<Expression.Problem>problemsprivate final BooleanExpressionbooleanExpressionprivate final StringzeroStringprivate final StringoneStringprivate final ReturnTypereturnTypeprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFieldsprivate BooleanisImmutable
-
Constructor Summary
Constructors Constructor Description StringFromBoolean(BooleanExpression booleanExpression, String zeroString, String oneString)
-
Method Summary
Modifier and Type Method Description List<Expression>getSubExpressions()List<Expression.Problem>getProblems()final BooleanExpressiongetBooleanExpression()final StringgetZeroString()final StringgetOneString()StringtoString()StringgetValue(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.strings.StringExpression
getReturnType -
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getModbusValues, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, initialize, isImmutable, setImmutable, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
StringFromBoolean
StringFromBoolean(BooleanExpression booleanExpression, String zeroString, String oneString)
-
-
Method Detail
-
getSubExpressions
List<Expression> getSubExpressions()
-
getProblems
List<Expression.Problem> getProblems()
-
getBooleanExpression
final BooleanExpression getBooleanExpression()
-
getZeroString
final String getZeroString()
-
getOneString
final String getOneString()
-
getValue
String getValue(SchemaDevice schemaDevice)
- Returns:
The String value or null if it was not implemented
-
-
-
-