a220457a78a8a308bbc1d3a57a0fc464f76e782e
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / codeassist / complete / CompletionOnMethodReturnType.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.complete;
12
13 import net.sourceforge.phpdt.internal.compiler.CompilationResult;
14 import net.sourceforge.phpdt.internal.compiler.ast.MethodDeclaration;
15 import net.sourceforge.phpdt.internal.compiler.ast.TypeReference;
16 import net.sourceforge.phpdt.internal.compiler.lookup.ClassScope;
17
18 public class CompletionOnMethodReturnType extends MethodDeclaration {
19         public CompletionOnMethodReturnType(TypeReference returnType, CompilationResult compilationResult){
20                 super(compilationResult);
21                 this.returnType = returnType;
22                 this.sourceStart = returnType.sourceStart;
23                 this.sourceEnd = returnType.sourceEnd;
24         }
25         
26         public void resolveStatements(ClassScope upperScope) {
27                         throw new CompletionNodeFound(this, upperScope);
28         }
29         
30         public String toString(int tab) {
31                 return returnType.toString(tab);
32         }
33
34 }