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;
13 public interface ISourceType extends IGenericType {
15 * Answer the source end position of the type's declaration.
18 int getDeclarationSourceEnd();
21 * Answer the source start position of the type's declaration.
24 int getDeclarationSourceStart();
27 * Answer the enclosing type or null if the receiver is a top level type.
30 ISourceType getEnclosingType();
33 * Answer the receiver's fields or null if the array is empty.
35 * NOTE: Multiple fields with the same name can exist in the result.
38 ISourceField[] getFields();
41 // * Answer the unresolved names of the receiver's imports
42 // * or null if the array is empty.
44 // * An import is a qualified, dot separated name.
45 // * For example, java.util.Hashtable or java.lang.*.
48 // char[][] getImports();
50 * Answer the receiver's imports or null if the array is empty.
52 * An import is a qualified, dot separated name. For example,
53 * java.util.Hashtable or java.lang.*. A static import used 'static.' as its
54 * first fragment, for example: static.java.util.Hashtable.*
56 char[][] getImports();
59 * Answer the unresolved names of the receiver's interfaces or null if the
62 * A name is a simple name or a qualified, dot separated name. For example,
63 * Hashtable or java.util.Hashtable.
66 char[][] getInterfaceNames();
69 * Answer the receiver's member types or null if the array is empty.
72 ISourceType[] getMemberTypes();
75 * Answer the receiver's methods or null if the array is empty.
77 * NOTE: Multiple methods with the same name & parameter types can exist in
81 ISourceMethod[] getMethods();
84 * Answer the simple source name of the receiver.
90 * Answer the source end position of the type's name.
93 int getNameSourceEnd();
96 * Answer the source start position of the type's name.
99 int getNameSourceStart();
102 * Answer the qualified name of the receiver's package separated by periods
103 * or null if its the default package.
105 * For example, {java.util.Hashtable}.
108 char[] getPackageName();
111 * Answer the qualified name of the receiver.
113 * The name is a qualified, dot separated name. For example,
114 * java.util.Hashtable.
117 char[] getQualifiedName();
120 * Answer the unresolved name of the receiver's superclass or null if it
123 * The name is a simple name or a qualified, dot separated name. For
124 * example, Hashtable or java.util.Hashtable.
127 char[] getSuperclassName();