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 SummaryModifier and TypeMethodDescriptionReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.getType()intgetValue()Gets the value of the integer.toNode()Converts a value to aNode.Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.ValuearrayValue, booleanValue, emptyValue, endpointValue, expectArrayValue, expectBooleanValue, expectEndpointValue, expectRecordValue, expectStringValue, fromNode, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
- 
Method Details- 
getValuepublic int getValue()Gets the value of the integer.- Returns:
- the value of the integer.
 
- 
getType
- 
expectIntegerValueDescription copied from class:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
- expectIntegerValuein class- Value
- Returns:
- returns an integer value.
 
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
 
 
-