spring-framework / org.springframework.expression.spel.ast / Literal / getIntLiteral

getIntLiteral

open static fun getIntLiteral(numberToken: String, pos: Int, radix: Int): Literal

Process the string form of a number, using the specified base if supplied and return an appropriate literal to hold it. Any suffix to indicate a long will be taken into account (either 'l' or 'L' is supported).

Parameters

numberToken - the token holding the number as its payload (eg. 1234 or 0xCAFE)

radix - the base of number

Return
a subtype of Literal that can represent it