added Spanish language in the page (why wasn't it ?)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / codeassist / select / SelectionOnLocalName.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.codeassist.select;
12
13 import net.sourceforge.phpdt.internal.compiler.ast.Expression;
14 import net.sourceforge.phpdt.internal.compiler.ast.LocalDeclaration;
15 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
16
17 public class SelectionOnLocalName extends LocalDeclaration{
18         public SelectionOnLocalName(Expression expr, char[] name,       int sourceStart, int sourceEnd) {
19                 super(expr, name, sourceStart, sourceEnd);
20         }
21         
22         public void resolve(BlockScope scope) {
23                 super.resolve(scope);
24                 throw new SelectionNodeFound(binding);
25         }
26         
27         public String toString(int tab) {
28                 String s = tabString(tab);
29                 s += "<SelectionOnLocalName:"; //$NON-NLS-1$
30                 if (modifiers != AccDefault) {
31                         s += modifiersString(modifiers);
32                 }
33                 s += type.toString(0) + " " + new String(name()); //$NON-NLS-1$
34                 if (initialization != null) s += " = " + initialization.toStringExpression(); //$NON-NLS-1$
35                 s+= ">";//$NON-NLS-1$
36                 return s;       
37         }
38 }