removed Makefile; lifted repo/org.ibex.tool/src/ to src/
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / env / ISourceType.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.env;
12
13 public interface ISourceType extends IGenericType {
14
15 /**
16  * Answer the source end position of the type's declaration.
17  */
18 int getDeclarationSourceEnd();
19
20 /**
21  * Answer the source start position of the type's declaration.
22  */
23 int getDeclarationSourceStart();
24
25 /**
26  * Answer the enclosing type
27  * or null if the receiver is a top level type.
28  */
29 ISourceType getEnclosingType();
30
31 /**
32  * Answer the receiver's fields or null if the array is empty.
33  *
34  * NOTE: Multiple fields with the same name can exist in the result.
35  */
36 ISourceField[] getFields();
37
38 /**
39  * Answer the receiver's imports or null if the array is empty.
40  *
41  * An import is a qualified, dot separated name.
42  * For example, java.util.Hashtable or java.lang.*.
43  * A static import used 'static.' as its first fragment, for
44  * example: static.java.util.Hashtable.*
45  */
46 ISourceImport[] getImports();
47
48 /**
49  * Answer the unresolved names of the receiver's interfaces
50  * or null if the array is empty.
51  *
52  * A name is a simple name or a qualified, dot separated name.
53  * For example, Hashtable or java.util.Hashtable.
54  */
55 char[][] getInterfaceNames();
56
57 /**
58  * Answer the receiver's member types
59  * or null if the array is empty.
60  */
61 ISourceType[] getMemberTypes();
62
63 /**
64  * Answer the receiver's methods or null if the array is empty.
65  *
66  * NOTE: Multiple methods with the same name & parameter types can exist in the result.
67  */
68 ISourceMethod[] getMethods();
69
70 /**
71  * Answer the simple source name of the receiver.
72  */
73 char[] getName();
74
75 /**
76  * Answer the source end position of the type's name.
77  */
78 int getNameSourceEnd();
79
80 /**
81  * Answer the source start position of the type's name.
82  */
83 int getNameSourceStart();
84
85 /**
86  * Answer the qualified name of the receiver's package separated by periods
87  * or null if its the default package.
88  *
89  * For example, {java.util.Hashtable}.
90  */
91 char[] getPackageName();
92
93 /**
94  * Answer the unresolved name of the receiver's superclass
95  * or null if it does not have one.
96  *
97  * The name is a simple name or a qualified, dot separated name.
98  * For example, Hashtable or java.util.Hashtable.
99  */
100 char[] getSuperclassName();
101 }