polyglot.lex
Class NumericLiteral

java.lang.Object
  extended by polyglot.lex.Token
      extended by polyglot.lex.Literal
          extended by polyglot.lex.NumericLiteral
Direct Known Subclasses:
DoubleLiteral, FloatLiteral, IntegerLiteral, LongLiteral

public abstract class NumericLiteral
extends Literal

A token class for numerical literals.


Constructor Summary
NumericLiteral(Position position, int sym)
           
 
Method Summary
 java.lang.Number getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class polyglot.lex.Token
escape, getPosition, symbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericLiteral

public NumericLiteral(Position position,
                      int sym)
Method Detail

getValue

public java.lang.Number getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object