de.grogra.grammar
public final class LongLiteral 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 |
|---|
LongLiteral(long value) |
LongLiteral(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 long |
parse(java.lang.CharSequence s,
int begin,
int end,
int radix,
boolean allowOverflowOnce) |
dup, getColumn, getEndPosition, getFilename, getLine, getStartPosition, getTokenizer, setExtent, setTokenizerpublic LongLiteral(long value)
public LongLiteral(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 long parse(java.lang.CharSequence s,
int begin,
int end,
int radix,
boolean allowOverflowOnce)
throws java.lang.NumberFormatException
java.lang.NumberFormatException