first scanner /parser copied from the jdt java version
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / impl / NullConstant.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v0.5 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v05.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.impl;
12
13 public class NullConstant extends Constant {
14         public static final NullConstant Default = new NullConstant();
15
16         final static String NullString = new StringBuffer(4).append((String)null).toString();
17 private NullConstant() {
18 }
19 public String stringValue() {
20         
21         return NullString;
22 }
23 public String toString(){
24
25         return "(null)" + null ; } //$NON-NLS-1$
26 public int typeID() {
27         return T_null;
28 }
29 }