41e45e5162c46463fc03e4af99fec41b97d49620
[phpeclipse.git] /
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.ast.AstNode;
14 import net.sourceforge.phpdt.internal.compiler.lookup.Binding;
15 import net.sourceforge.phpdt.internal.compiler.lookup.Scope;
16
17 public class CompletionNodeFound extends RuntimeException {
18         public AstNode astNode;
19         public Binding qualifiedBinding;
20         public Scope scope;
21 public CompletionNodeFound() {
22         this(null, null, null); // we found a problem in the completion node
23 }
24 public CompletionNodeFound(AstNode astNode, Binding qualifiedBinding, Scope scope) {
25         this.astNode = astNode;
26         this.qualifiedBinding = qualifiedBinding;
27         this.scope = scope;
28 }
29 public CompletionNodeFound(AstNode astNode, Scope scope) {
30         this(astNode, null, scope);
31 }
32 }