Organized imports
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / env / ISourceType.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 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 net.sourceforge.phpdt.internal.compiler.env;
12
13
14 public interface ISourceType extends IGenericType {
15 /**
16  * Answer the source end position of the type's declaration.
17  */
18
19 int getDeclarationSourceEnd();
20 /**
21  * Answer the source start position of the type's declaration.
22  */
23
24 int getDeclarationSourceStart();
25 /**
26  * Answer the enclosing type
27  * or null if the receiver is a top level type.
28  */
29
30 ISourceType getEnclosingType();
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
37 ISourceField[] getFields();
38 ///**
39 // * Answer the unresolved names of the receiver's imports
40 // * or null if the array is empty.
41 // *
42 // * An import is a qualified, dot separated name.
43 // * For example, java.util.Hashtable or java.lang.*.
44 // */
45 //
46 //char[][] getImports();
47 /**
48  * Answer the receiver's imports or null if the array is empty.
49  *
50  * An import is a qualified, dot separated name.
51  * For example, java.util.Hashtable or java.lang.*.
52  * A static import used 'static.' as its first fragment, for
53  * example: static.java.util.Hashtable.*
54  */
55 char[][] getImports();
56
57 /**
58  * Answer the unresolved names of the receiver's interfaces
59  * or null if the array is empty.
60  *
61  * A name is a simple name or a qualified, dot separated name.
62  * For example, Hashtable or java.util.Hashtable.
63  */
64
65 char[][] getInterfaceNames();
66 /**
67  * Answer the receiver's member types
68  * or null if the array is empty.
69  */
70
71 ISourceType[] getMemberTypes();
72 /**
73  * Answer the receiver's methods or null if the array is empty.
74  *
75  * NOTE: Multiple methods with the same name & parameter types can exist in the result.
76  */
77
78 ISourceMethod[] getMethods();
79 /**
80  * Answer the simple source name of the receiver.
81  */
82
83 char[] getName();
84 /**
85  * Answer the source end position of the type's name.
86  */
87
88 int getNameSourceEnd();
89 /**
90  * Answer the source start position of the type's name.
91  */
92
93 int getNameSourceStart();
94 /**
95  * Answer the qualified name of the receiver's package separated by periods
96  * or null if its the default package.
97  *
98  * For example, {java.util.Hashtable}.
99  */
100
101 char[] getPackageName();
102 /**
103  * Answer the qualified name of the receiver.
104  *
105  * The name is a qualified, dot separated name.
106  * For example, java.util.Hashtable.
107  */
108
109 char[] getQualifiedName();
110 /**
111  * Answer the unresolved name of the receiver's superclass
112  * or null if it does not have one.
113  *
114  * The name is a simple name or a qualified, dot separated name.
115  * For example, Hashtable or java.util.Hashtable.
116  */
117
118 char[] getSuperclassName();
119 }