KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > codeassist > complete > CompletionNodeFound


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.codeassist.complete;
12
13 import org.eclipse.jdt.internal.compiler.ast.ASTNode;
14 import org.eclipse.jdt.internal.compiler.lookup.Binding;
15 import org.eclipse.jdt.internal.compiler.lookup.Scope;
16
17 public class CompletionNodeFound extends RuntimeException JavaDoc {
18     
19     public ASTNode astNode;
20     public Binding qualifiedBinding;
21     public Scope scope;
22     public boolean insideTypeAnnotation = false;
23
24     private static final long serialVersionUID = 6981437684184091462L; // backward compatible
25

26 public CompletionNodeFound() {
27     this(null, null, null, false); // we found a problem in the completion node
28
}
29 public CompletionNodeFound(ASTNode astNode, Binding qualifiedBinding, Scope scope) {
30     this(astNode, qualifiedBinding, scope, false);
31 }
32 public CompletionNodeFound(ASTNode astNode, Binding qualifiedBinding, Scope scope, boolean insideTypeAnnotation) {
33     this.astNode = astNode;
34     this.qualifiedBinding = qualifiedBinding;
35     this.scope = scope;
36     this.insideTypeAnnotation = insideTypeAnnotation;
37 }
38 public CompletionNodeFound(ASTNode astNode, Scope scope) {
39     this(astNode, null, scope, false);
40 }
41 public CompletionNodeFound(ASTNode astNode, Scope scope, boolean insideTypeAnnotation) {
42     this(astNode, null, scope, insideTypeAnnotation);
43 }
44 }
45
Popular Tags