1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / MagicLiteral.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 MagicLiteral extends Literal {
14         public MagicLiteral(int s, int e) {
15                 super(s, e);
16         }
17
18         public boolean isValidJavaStatement() {
19                 // should never be reach, but with a bug in the ast tree....
20                 // see comment on the Statement class
21
22                 return false;
23         }
24
25         /**
26          * source method comment.
27          */
28         public char[] source() {
29                 return null;
30         }
31
32         public String toStringExpression() {
33
34                 return new String(source());
35         }
36 }