KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > ast > NumberLiteral


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.compiler.ast;
12
13 public abstract class NumberLiteral extends Literal {
14
15     char[] source;
16     
17     public NumberLiteral(char[] token, int s, int e) {
18         
19         this(s,e) ;
20         source = token ;
21     }
22     
23     public NumberLiteral(int s, int e) {
24         super (s,e) ;
25     }
26     
27     public boolean isValidJavaStatement(){
28
29         return false ;
30     }
31     
32     public char[] source(){
33
34         return source;
35     }
36 }
37
Popular Tags