public abstract class Literal extends SpelNodeImpl
| Modifier and Type | Field and Description |
|---|---|
protected String |
literalValue |
children, pos| Modifier and Type | Method and Description |
|---|---|
static Literal |
getIntLiteral(String numberToken,
int pos,
int radix)
Process the string form of a number, using the specified base if supplied and return an appropriate literal to
hold it.
|
abstract TypedValue |
getLiteralValue() |
static Literal |
getLongLiteral(String numberToken,
int pos,
int radix) |
static Literal |
getRealLiteral(String numberToken,
int pos,
boolean isFloat) |
TypedValue |
getValueInternal(ExpressionState state) |
String |
toString() |
String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, getValueRef, isWritable, nextChildIs, setValueprotected String literalValue
public Literal(String payload, int pos)
public abstract TypedValue getLiteralValue()
public final TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException
getValueInternal in class SpelNodeImplSpelEvaluationExceptionpublic String toStringAST()
toStringAST in interface SpelNodetoStringAST in class SpelNodeImplpublic static Literal getIntLiteral(String numberToken, int pos, int radix)
numberToken - the token holding the number as its payload (eg. 1234 or 0xCAFE)radix - the base of number