KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > env > ISourceType


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-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 unresolved names of the receiver's interfaces
40  * or null if the array is empty.
41  *
42  * A name is a simple name or a qualified, dot separated name.
43  * For example, Hashtable or java.util.Hashtable.
44  */

45 char[][] getInterfaceNames();
46
47 /**
48  * Answer the receiver's member types.
49  */

50 ISourceType[] getMemberTypes();
51
52 /**
53  * Answer the receiver's methods.
54  *
55  * NOTE: Multiple methods with the same name & parameter types can exist in the result.
56  */

57 ISourceMethod[] getMethods();
58
59 /**
60  * Answer the simple source name of the receiver.
61  */

62 char[] getName();
63
64 /**
65  * Answer the source end position of the type's name.
66  */

67 int getNameSourceEnd();
68
69 /**
70  * Answer the source start position of the type's name.
71  */

72 int getNameSourceStart();
73
74 /**
75  * Answer the unresolved name of the receiver's superclass
76  * or null if it does not have one.
77  *
78  * The name is a simple name or a qualified, dot separated name.
79  * For example, Hashtable or java.util.Hashtable.
80  */

81 char[] getSuperclassName();
82 /**
83  * Answer the array of bound names of the receiver's type parameters.
84  */

85 char[][][] getTypeParameterBounds();
86 /**
87  * Answer the names of the receiver's type parameters.
88  */

89 char[][] getTypeParameterNames();
90 }
91
Popular Tags