public abstract class Literal extends SpelNodeImpl
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
literalValue |
children, pos| Constructor and Description |
|---|
Literal(java.lang.String payload,
int pos) |
| Modifier and Type | Method and Description |
|---|---|
static Literal |
getIntLiteral(java.lang.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(java.lang.String numberToken,
int pos,
int radix) |
static Literal |
getRealLiteral(java.lang.String numberToken,
int pos,
boolean isFloat) |
TypedValue |
getValueInternal(ExpressionState state) |
java.lang.String |
toString() |
java.lang.String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, isWritable, nextChildIs, setValuepublic abstract TypedValue getLiteralValue()
public final TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException
getValueInternal in class SpelNodeImplSpelEvaluationExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringAST()
toStringAST in interface SpelNodetoStringAST in class SpelNodeImplpublic static Literal getIntLiteral(java.lang.String numberToken, int pos, int radix)
numberToken - the token holding the number as its payload (eg. 1234 or 0xCAFE)radix - the base of numberpublic static Literal getLongLiteral(java.lang.String numberToken, int pos, int radix)
public static Literal getRealLiteral(java.lang.String numberToken, int pos, boolean isFloat)