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 IntegerValueexpectIntegerValue()Returns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.TypegetType()intgetValue()Gets the value of the integer.NodetoNode()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:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
expectIntegerValuein classValue- Returns:
- returns an integer value.
-
-