KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > codeassist > ISearchRequestor


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;
12
13 import org.eclipse.jdt.internal.compiler.env.AccessRestriction;
14
15 /**
16  * This is the internal requestor passed to the searchable name environment
17  * so as to process the multiple search results as they are discovered.
18  *
19  * It is used to allow the code assist engine to add some more information
20  * to the raw name environment results before answering them to the UI.
21  */

22 public interface ISearchRequestor {
23     /**
24      * One result of the search consists of a new type.
25      *
26      * NOTE - All package and type names are presented in their readable form:
27      * Package names are in the form "a.b.c".
28      * Nested type names are in the qualified form "A.I".
29      * The default package is represented by an empty array.
30      */

31     public void acceptType(char[] packageName, char[] typeName, char[][] enclosingTypeNames, int modifiers, AccessRestriction accessRestriction);
32
33 // /**
34
// * One result of the search consists of a new annotation.
35
// *
36
// * NOTE - All package and type names are presented in their readable form:
37
// * Package names are in the form "a.b.c".
38
// * Nested type names are in the qualified form "A.I".
39
// * The default package is represented by an empty array.
40
// */
41
// public void acceptAnnotation(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
42
//
43
// /**
44
// * One result of the search consists of a new class.
45
// *
46
// * NOTE - All package and type names are presented in their readable form:
47
// * Package names are in the form "a.b.c".
48
// * Nested type names are in the qualified form "A.M".
49
// * The default package is represented by an empty array.
50
// */
51
// public void acceptClass(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
52
//
53
// /**
54
// * One result of the search consists of a new enum.
55
// *
56
// * NOTE - All package and type names are presented in their readable form:
57
// * Package names are in the form "a.b.c".
58
// * Nested type names are in the qualified form "A.I".
59
// * The default package is represented by an empty array.
60
// */
61
// public void acceptEnum(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
62
//
63
// /**
64
// * One result of the search consists of a new interface.
65
// *
66
// * NOTE - All package and type names are presented in their readable form:
67
// * Package names are in the form "a.b.c".
68
// * Nested type names are in the qualified form "A.I".
69
// * The default package is represented by an empty array.
70
// */
71
// public void acceptInterface(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
72

73     /**
74      * One result of the search consists of a new package.
75      *
76      * NOTE - All package names are presented in their readable form:
77      * Package names are in the form "a.b.c".
78      * The default package is represented by an empty array.
79      */

80     public void acceptPackage(char[] packageName);
81 }
82
Popular Tags