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: /**
17: * Java completion package
18: *
19: * @author Miloslav Metelka
20: * @version 1.00
21: */
22:
23: public interface JCPackage extends Comparable {
24:
25: /** Get full name of this package */
26: public String getName();
27:
28: /**
29: * Get last part of the name - the string after the last dot.
30: */
31: public String getLastName();
32:
33: /** Get classes contained in this package */
34: public JCClass[] getClasses();
35:
36: /** Set the list of the classes that this package contains */
37: public void setClasses(JCClass[] classes);
38:
39: /** Get the count of dots in the name of the package */
40: public int getDotCount();
41:
42: }
|