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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.env;
14 public interface ISourceType extends IGenericType {
16 * Answer the source end position of the type's declaration.
19 int getDeclarationSourceEnd();
21 * Answer the source start position of the type's declaration.
24 int getDeclarationSourceStart();
26 * Answer the enclosing type
27 * or null if the receiver is a top level type.
30 ISourceType getEnclosingType();
32 * Answer the receiver's fields or null if the array is empty.
34 * NOTE: Multiple fields with the same name can exist in the result.
37 ISourceField[] getFields();
39 // * Answer the unresolved names of the receiver's imports
40 // * or null if the array is empty.
42 // * An import is a qualified, dot separated name.
43 // * For example, java.util.Hashtable or java.lang.*.
46 //char[][] getImports();
48 * Answer the receiver's imports or null if the array is empty.
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.*
55 char[][] getImports();
58 * Answer the unresolved names of the receiver's interfaces
59 * or null if the array is empty.
61 * A name is a simple name or a qualified, dot separated name.
62 * For example, Hashtable or java.util.Hashtable.
65 char[][] getInterfaceNames();
67 * Answer the receiver's member types
68 * or null if the array is empty.
71 ISourceType[] getMemberTypes();
73 * Answer the receiver's methods or null if the array is empty.
75 * NOTE: Multiple methods with the same name & parameter types can exist in the result.
78 ISourceMethod[] getMethods();
80 * Answer the simple source name of the receiver.
85 * Answer the source end position of the type's name.
88 int getNameSourceEnd();
90 * Answer the source start position of the type's name.
93 int getNameSourceStart();
95 * Answer the qualified name of the receiver's package separated by periods
96 * or null if its the default package.
98 * For example, {java.util.Hashtable}.
101 char[] getPackageName();
103 * Answer the qualified name of the receiver.
105 * The name is a qualified, dot separated name.
106 * For example, java.util.Hashtable.
109 char[] getQualifiedName();
111 * Answer the unresolved name of the receiver's superclass
112 * or null if it does not have one.
114 * The name is a simple name or a qualified, dot separated name.
115 * For example, Hashtable or java.util.Hashtable.
118 char[] getSuperclassName();