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

StringLiteral

open class StringLiteral : Literal

Expression language AST node that represents a string literal.

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

StringLiteral(payload: String, pos: Int, value: String)

Functions

generateCode

open fun generateCode(mv: MethodVisitor, cf: CodeFlow): Unit

getLiteralValue

open fun getLiteralValue(): TypedValue

isCompilable

open fun isCompilable(): Boolean

toString

open fun toString(): String

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

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

toStringAST

open fun toStringAST(): String