de.grogra.grammar
Class IntLiteral
java.lang.Object
antlr.Token
antlr.CommonToken
de.grogra.grammar.Token
de.grogra.grammar.Literal
de.grogra.grammar.NumberLiteral
de.grogra.grammar.IntLiteral
- All Implemented Interfaces:
- java.lang.Cloneable
public final class IntLiteral
- extends NumberLiteral
Fields inherited from class de.grogra.grammar.Token |
BOOLEAN_LITERAL, CHAR_LITERAL, DOUBLE_LITERAL, FLOAT_LITERAL, IDENT, INT_LITERAL, LONG_LITERAL, MAX_NUMBER_LITERAL, MIN_NUMBER_LITERAL, MIN_UNUSED, STRING_LITERAL |
Fields inherited from class antlr.CommonToken |
col, line, text |
Fields inherited from class antlr.Token |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type |
Methods inherited from class antlr.CommonToken |
setColumn, setLine, setText, toString |
Methods inherited from class antlr.Token |
getType, setFilename, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntLiteral
public IntLiteral(int value)
IntLiteral
public IntLiteral(java.lang.String value,
int radix)
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in class NumberLiteral
floatValue
public float floatValue()
- Specified by:
floatValue
in class NumberLiteral
getText
public java.lang.String getText()
- Overrides:
getText
in class antlr.CommonToken
intValue
public int intValue()
- Specified by:
intValue
in class NumberLiteral
isDecimal
public boolean isDecimal()
longValue
public long longValue()
- Specified by:
longValue
in class NumberLiteral
parse
public static int parse(java.lang.CharSequence s,
int begin,
int end,
int radix,
boolean allowOverflowOnce)
throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException