01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.core.hierarchy;
11:
12: import org.eclipse.jdt.core.IType;
13: import org.eclipse.jdt.internal.compiler.env.IGenericType;
14:
15: /**
16: *
17: * Partial implementation of an IGenericType used to
18: * answer hierarchies.
19: */
20: public class HierarchyType implements IGenericType {
21:
22: public IType typeHandle;
23: public char[] name;
24: public int modifiers;
25: public char[] super className;
26: public char[][] super InterfaceNames;
27:
28: public HierarchyType(IType typeHandle, char[] name, int modifiers,
29: char[] super className, char[][] super InterfaceNames) {
30:
31: this .typeHandle = typeHandle;
32: this .name = name;
33: this .modifiers = modifiers;
34: this .super className = super className;
35: this .super InterfaceNames = super InterfaceNames;
36: }
37:
38: /**
39: * @see org.eclipse.jdt.internal.compiler.env.IDependent#getFileName()
40: */
41: public char[] getFileName() {
42: return this .typeHandle.getCompilationUnit().getElementName()
43: .toCharArray();
44: }
45:
46: /**
47: * Answer an int whose bits are set according the access constants
48: * defined by the VM spec.
49: */
50: public int getModifiers() {
51: return this .modifiers;
52: }
53:
54: /**
55: * Answer whether the receiver contains the resolved binary form
56: * or the unresolved source form of the type.
57: */
58: public boolean isBinaryType() {
59: return false;
60: }
61: }
|