when you check php or html you have now to tell if the parser should throw an excepti...
[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(final char[] token,
11                        final int sourceStart,
12                        final int sourceEnd) {
13     super(sourceStart, sourceEnd);
14     source = token;
15   }
16
17   public char[] source() {
18     return source;
19   }
20
21   /**
22    * Return the expression as String.
23    * @return the expression
24    */
25   public String toStringExpression() {
26     return new String(source);
27   }
28 }