blob: 83a979fa481701687a1e1a4dc4f94c63e5e58551 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.internal.core.hierarchy;
import org.eclipse.dltk.compiler.env.IGenericType;
import org.eclipse.dltk.core.IType;
/**
*
* 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.jdt.internal.compiler.env.IDependent#getFileName()
*/
@Override
public String getFileName() {
return this.typeHandle.getSourceModule().getElementName();
}
/**
* Answer an int whose bits are set according the access constants defined
* by the VM spec.
*/
@Override
public int getModifiers() {
return this.modifiers;
}
/**
* Answer whether the receiver contains the resolved binary form or the
* unresolved source form of the type.
*/
@Override
public boolean isBinaryType() {
return false;
}
}