A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / NumberLiteral.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.ast;
12
13 public abstract class NumberLiteral extends Literal {
14         char[] source;
15
16         public NumberLiteral(char[] token, int s, int e) {
17                 this(s, e);
18                 source = token;
19         }
20
21         public NumberLiteral(int s, int e) {
22                 super(s, e);
23         }
24
25         public boolean isValidJavaStatement() {
26                 // should never be reach, but with a bug in the ast tree....
27                 // see comment on the Statement class
28
29                 return false;
30         }
31
32         public char[] source() {
33                 return source;
34         }
35
36         public String toStringExpression() {
37
38                 return new String(source);
39         }
40 }