public abstract class Literal extends SpelNodeImpl
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) |
String |
getOriginalValue() |
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, setValue
public Literal(String originalValue, int pos)
public final String getOriginalValue()
public final TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException
getValueInternal
in class SpelNodeImpl
SpelEvaluationException
public String toStringAST()
public abstract TypedValue getLiteralValue()
public 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