*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / codeassist / select / SelectionOnArgumentName.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.Argument;
14 import net.sourceforge.phpdt.internal.compiler.ast.TypeReference;
15 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
16 import net.sourceforge.phpdt.internal.compiler.lookup.MethodScope;
17 import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
18
19 public class SelectionOnArgumentName extends Argument {
20         public SelectionOnArgumentName(char[] name , long posNom , TypeReference tr , int modifiers){
21                 super(name, posNom, tr, modifiers);
22         }
23         
24         public void resolve(BlockScope scope) {
25                 super.resolve(scope);
26                 throw new SelectionNodeFound(binding);
27         }
28         
29         public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) {
30                 super.bind(scope, typeBinding, used);
31                 
32                 throw new SelectionNodeFound(binding);
33         }
34         
35         public String toString(int tab) {
36                 String s = tabString(tab);
37                 s += "<SelectionOnArgumentName:"; //$NON-NLS-1$
38                 if (type != null) s += type.toString() + " "; //$NON-NLS-1$
39                 s += new String(name());
40                 if (initialization != null) s += " = " + initialization.toStringExpression(); //$NON-NLS-1$
41                 s += ">"; //$NON-NLS-1$
42                 return s;
43         }
44 }