de.grogra.grammar
public final class IntLiteral extends NumberLiteral
DOUBLE, FLOAT, INT, LONGBOOLEAN_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 |
|---|
IntLiteral(int value) |
IntLiteral(java.lang.String value,
int radix) |
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue() |
float |
floatValue() |
java.lang.String |
getText() |
int |
intValue() |
boolean |
isDecimal() |
long |
longValue() |
static int |
parse(java.lang.CharSequence s,
int begin,
int end,
int radix,
boolean allowOverflowOnce) |
dup, getColumn, getEndPosition, getFilename, getLine, getStartPosition, getTokenizer, setExtent, setTokenizerpublic IntLiteral(int value)
public IntLiteral(java.lang.String value,
int radix)
public double doubleValue()
doubleValue in class NumberLiteralpublic float floatValue()
floatValue in class NumberLiteralpublic java.lang.String getText()
getText in class antlr.CommonTokenpublic int intValue()
intValue in class NumberLiteralpublic boolean isDecimal()
public long longValue()
longValue in class NumberLiteralpublic static int parse(java.lang.CharSequence s,
int begin,
int end,
int radix,
boolean allowOverflowOnce)
throws java.lang.NumberFormatException
java.lang.NumberFormatException