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