1 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 { 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; 26 public CompletionNodeFound() { 27 this(null, null, null, false); } 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 |