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

Literal

abstract class Literal : SpelNodeImpl

Common superclass for nodes representing literals (boolean, string, number, etc).

Author
Andy Clement

Author
Juergen Hoeller

Constructors

<init>

Literal(originalValue: String, pos: Int)

Functions

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).

getLiteralValue

abstract fun getLiteralValue(): TypedValue

getLongLiteral

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

getOriginalValue

fun getOriginalValue(): String

getRealLiteral

open static fun getRealLiteral(numberToken: String, pos: Int, isFloat: Boolean): Literal

getValueInternal

fun getValueInternal(state: ExpressionState): TypedValue

toString

open fun toString(): String

toStringAST

open fun toStringAST(): String

Inheritors

BooleanLiteral

open class BooleanLiteral : Literal

Represents the literal values TRUE and FALSE.

FloatLiteral

open class FloatLiteral : Literal

Expression language AST node that represents a float literal.

IntLiteral

open class IntLiteral : Literal

Expression language AST node that represents an integer literal.

LongLiteral

open class LongLiteral : Literal

Expression language AST node that represents a long integer literal.

NullLiteral

open class NullLiteral : Literal

Expression language AST node that represents null.

RealLiteral

open class RealLiteral : Literal

Expression language AST node that represents a real literal.

StringLiteral

open class StringLiteral : Literal

Expression language AST node that represents a string literal.