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