Class StringConstant
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.strings.StringExpression
public final class StringConstant implements StringExpression
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisImmutableprivate final Stringvalueprivate final ReturnTypereturnTypeprivate 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 StringConstant(String value)
-
Method Summary
Modifier and Type Method Description BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)final StringgetValue()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, 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
-
StringConstant
StringConstant(String value)
-
-
Method Detail
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getValue
String getValue(SchemaDevice schemaDevice)
- Returns:
The String value or null if it was not implemented
-
-
-
-