de.grogra.grammar
public abstract class NumberLiteral extends Literal
| Modifier and Type | Field and Description |
|---|---|
static int |
DOUBLE |
static int |
FLOAT |
static int |
INT |
static int |
LONG |
BOOLEAN_LITERAL, CHAR_LITERAL, DOUBLE_LITERAL, FLOAT_LITERAL, IDENT, INT_LITERAL, LONG_LITERAL, MAX_NUMBER_LITERAL, MIN_NUMBER_LITERAL, MIN_UNUSED, STRING_LITERAL| Constructor and Description |
|---|
NumberLiteral(int type,
java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
doubleValue() |
abstract float |
floatValue() |
abstract int |
intValue() |
abstract long |
longValue() |
dup, getColumn, getEndPosition, getFilename, getLine, getStartPosition, getTokenizer, setExtent, setTokenizerpublic static final int DOUBLE
public static final int FLOAT
public static final int INT
public static final int LONG