01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor.ext.java;
15:
16: import java.util.Iterator;
17:
18: /**
19: * Java completion class provider
20: *
21: * @author Miloslav Metelka
22: * @version 1.00
23: */
24:
25: public interface JCClassProvider {
26:
27: public Iterator getClasses();
28:
29: /**
30: * @return true when append was successful or false when it failed or was
31: * broken by added classprovider.
32: */
33: public boolean append(JCClassProvider cp);
34:
35: public void reset();
36:
37: /**
38: * This method is executed by the target Class Provider to notify this
39: * provider about the class appending.
40: *
41: * @param c
42: * JC class that was appended
43: * @return true to continue building, false to stop build
44: */
45: public boolean notifyAppend(JCClass c, boolean appendFinished);
46:
47: }
|