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
public final class IntegerValue extends Value
An integer value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerValue
expectIntegerValue()
Returns the current value as anArrayValue
, throwingRuntimeException
when the value is the wrong type.Type
getType()
int
getValue()
Gets the value of the integer.Node
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 Detail
-
getValue
public int getValue()
Gets the value of the integer.- Returns:
- the value of the integer.
-
expectIntegerValue
public IntegerValue 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.
-
-