added -J option to preserve unmodified files in preexisting jarfile
[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.
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.
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  */
60 ISourceType[] getMemberTypes();
61
62 /**
63  * Answer the receiver's methods.
64  *
65  * NOTE: Multiple methods with the same name & parameter types can exist in the result.
66  */
67 ISourceMethod[] getMethods();
68
69 /**
70  * Answer the simple source name of the receiver.
71  */
72 char[] getName();
73
74 /**
75  * Answer the source end position of the type's name.
76  */
77 int getNameSourceEnd();
78
79 /**
80  * Answer the source start position of the type's name.
81  */
82 int getNameSourceStart();
83
84 /**
85  * Answer the qualified name of the receiver's package separated by periods
86  * or null if its the default package.
87  *
88  * For example, {java.util.Hashtable}.
89  */
90 char[] getPackageName();
91
92 /**
93  * Answer the unresolved name of the receiver's superclass
94  * or null if it does not have one.
95  *
96  * The name is a simple name or a qualified, dot separated name.
97  * For example, Hashtable or java.util.Hashtable.
98  */
99 char[] getSuperclassName();
100 /**
101  * Answer the array of bound names of the receiver's type parameters.
102  */
103 char[][][] getTypeParameterBounds();
104 /**
105  * Answer the names of the receiver's type parameters.
106  */
107 char[][] getTypeParameterNames();
108 }