| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Literal | Returns: a subtype of Literal that can represent itthe token holding the number as its payload (eg. 1234 or 0xCAFE) numberToken, int startPos, int endPos, int the base of number radix)Process the string form of a number, using the specified base if supplied and return an appropriate literal to hold it. |
| public abstract TypedValue | |
| public static Literal | |
| public final String | |
| public static Literal | |
| public final TypedValue | getValueInternal(ExpressionState state)
Implements abstract org. |
| public boolean | Returns: true if this literal represents a numberDetermine if this literal represents a number. |
| public String | |
| public String | toStringAST()
Implements org. |
| originalValue | back to summary |
|---|---|
| private final String originalValue
| |
| Literal | back to summary |
|---|---|
| public Literal(String originalValue, int startPos, int endPos) | |
| getIntLiteral | back to summary |
|---|---|
| public static Literal getIntLiteral(String numberToken, int startPos, int endPos, int radix) 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 | back to summary |
|---|---|
| public abstract TypedValue getLiteralValue() | |
| getLongLiteral | back to summary |
|---|---|
| public static Literal getLongLiteral(String numberToken, int startPos, int endPos, int radix) | |
| getOriginalValue | back to summary |
|---|---|
public final String getOriginalValue()
| |
| getRealLiteral | back to summary |
|---|---|
| public static Literal getRealLiteral(String numberToken, int startPos, int endPos, boolean isFloat) | |
| getValueInternal | back to summary |
|---|---|
| public final TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException Implements abstract org.
| |
| isNumberLiteral | back to summary |
|---|---|
| public boolean isNumberLiteral() Determine if this literal represents a number.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringAST | back to summary |
|---|---|
| public String toStringAST() Implements org. Doc from org. Return the string form of this AST node. | |