de.grogra.grammar
Class NumberLiteral
java.lang.Object
antlr.Token
antlr.CommonToken
de.grogra.grammar.Token
de.grogra.grammar.Literal
de.grogra.grammar.NumberLiteral
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- DoubleLiteral, FloatLiteral, IntLiteral, LongLiteral
public abstract class NumberLiteral
- extends Literal
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 |
Constructor Summary |
NumberLiteral(int type,
java.lang.String text)
|
Methods inherited from class antlr.CommonToken |
getText, 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 |
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
INT
public static final int INT
- See Also:
- Constant Field Values
LONG
public static final int LONG
- See Also:
- Constant Field Values
NumberLiteral
public NumberLiteral(int type,
java.lang.String text)
doubleValue
public abstract double doubleValue()
floatValue
public abstract float floatValue()
intValue
public abstract int intValue()
longValue
public abstract long longValue()