01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.codeassist;
11:
12: import org.eclipse.jdt.internal.compiler.env.AccessRestriction;
13:
14: /**
15: * This is the internal requestor passed to the searchable name environment
16: * so as to process the multiple search results as they are discovered.
17: *
18: * It is used to allow the code assist engine to add some more information
19: * to the raw name environment results before answering them to the UI.
20: */
21: public interface ISearchRequestor {
22: /**
23: * One result of the search consists of a new type.
24: *
25: * NOTE - All package and type names are presented in their readable form:
26: * Package names are in the form "a.b.c".
27: * Nested type names are in the qualified form "A.I".
28: * The default package is represented by an empty array.
29: */
30: public void acceptType(char[] packageName, char[] typeName,
31: char[][] enclosingTypeNames, int modifiers,
32: AccessRestriction accessRestriction);
33:
34: // /**
35: // * One result of the search consists of a new annotation.
36: // *
37: // * NOTE - All package and type names are presented in their readable form:
38: // * Package names are in the form "a.b.c".
39: // * Nested type names are in the qualified form "A.I".
40: // * The default package is represented by an empty array.
41: // */
42: // public void acceptAnnotation(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
43: //
44: // /**
45: // * One result of the search consists of a new class.
46: // *
47: // * NOTE - All package and type names are presented in their readable form:
48: // * Package names are in the form "a.b.c".
49: // * Nested type names are in the qualified form "A.M".
50: // * The default package is represented by an empty array.
51: // */
52: // public void acceptClass(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
53: //
54: // /**
55: // * One result of the search consists of a new enum.
56: // *
57: // * NOTE - All package and type names are presented in their readable form:
58: // * Package names are in the form "a.b.c".
59: // * Nested type names are in the qualified form "A.I".
60: // * The default package is represented by an empty array.
61: // */
62: // public void acceptEnum(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
63: //
64: // /**
65: // * One result of the search consists of a new interface.
66: // *
67: // * NOTE - All package and type names are presented in their readable form:
68: // * Package names are in the form "a.b.c".
69: // * Nested type names are in the qualified form "A.I".
70: // * The default package is represented by an empty array.
71: // */
72: // public void acceptInterface(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction);
73:
74: /**
75: * One result of the search consists of a new package.
76: *
77: * NOTE - All package names are presented in their readable form:
78: * Package names are in the form "a.b.c".
79: * The default package is represented by an empty array.
80: */
81: public void acceptPackage(char[] packageName);
82: }
|