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 import net.sourceforge.phpdt.core.compiler.CharOperation;
15 public interface IBinaryType extends IGenericType {
17 char[][] NoInterface = CharOperation.NO_CHAR_CHAR;
18 IBinaryNestedType[] NoNestedType = new IBinaryNestedType[0];
19 IBinaryField[] NoField = new IBinaryField[0];
20 IBinaryMethod[] NoMethod = new IBinaryMethod[0];
22 * Answer the resolved name of the enclosing type in the
23 * class file format as specified in section 4.2 of the Java 2 VM spec
24 * or null if the receiver is a top level type.
26 * For example, java.lang.String is java/lang/String.
29 char[] getEnclosingTypeName();
31 * Answer the receiver's fields or null if the array is empty.
34 IBinaryField[] getFields();
36 * Answer the resolved names of the receiver's interfaces in the
37 * class file format as specified in section 4.2 of the Java 2 VM spec
38 * or null if the array is empty.
40 * For example, java.lang.String is java/lang/String.
43 char[][] getInterfaceNames();
45 * Answer the receiver's nested types or null if the array is empty.
47 * This nested type info is extracted from the inner class attributes.
48 * Ask the name environment to find a member type using its compound name.
51 // NOTE: The compiler examines the nested type info & ignores the local types
52 // so the local types do not have to be included.
54 IBinaryNestedType[] getMemberTypes();
56 * Answer the receiver's methods or null if the array is empty.
59 IBinaryMethod[] getMethods();
61 * Answer the resolved name of the type in the
62 * class file format as specified in section 4.2 of the Java 2 VM spec.
64 * For example, java.lang.String is java/lang/String.
69 * Answer the resolved name of the receiver's superclass in the
70 * class file format as specified in section 4.2 of the Java 2 VM spec
71 * or null if it does not have one.
73 * For example, java.lang.String is java/lang/String.
76 char[] getSuperclassName();
79 * Answer true if the receiver is an anonymous class.
82 boolean isAnonymous();
85 * Answer true if the receiver is a local class.
91 * Answer true if the receiver is a member class.
97 * Answer the source file attribute, or null if none.
99 * For example, "String.java"
102 char[] sourceFileName();