First try for AST structure. A lot of things to change
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / NumberLiteral.java
1 package net.sourceforge.phpdt.internal.compiler.ast;
2
3 /**
4  * Literal for numbers
5  * @author Matthieu Casanova
6  */
7 public class NumberLiteral extends Literal {
8   public char[] source;
9
10   public NumberLiteral(char[] token, int sourceStart, int sourceEnd) {
11     super(sourceStart, sourceEnd);
12     source = token;
13   }
14
15   public char[] source() {
16     return source;
17   }
18
19   /**
20    * Return the expression as String.
21    * @return the expression
22    */
23   public String toStringExpression() {
24     return new String(source);
25   }
26 }