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