Class StringValue
java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.value.Value
software.amazon.smithy.rulesengine.language.evaluation.value.StringValue
- All Implemented Interfaces:
FromSourceLocation
,ToNode
A string value.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the current value as anArrayValue
, throwingRuntimeException
when the value is the wrong type.getType()
getValue()
Gets the value of the string.int
hashCode()
toNode()
Converts a value to aNode
.toString()
Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.Value
arrayValue, booleanValue, emptyValue, endpointValue, expectArrayValue, expectBooleanValue, expectEndpointValue, expectIntegerValue, expectRecordValue, fromNode, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
-
Method Details
-
getValue
Gets the value of the string.- Returns:
- the value of the string.
-
getType
-
expectStringValue
Description copied from class:Value
Returns the current value as anArrayValue
, throwingRuntimeException
when the value is the wrong type.- Overrides:
expectStringValue
in classValue
- Returns:
- returns a string value.
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
.- Returns:
- Returns the creates Node.
-
equals
-
hashCode
public int hashCode() -
toString
-