/******************************************************************************* * Copyright (c) 2001, 2008 Oracle 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: * Oracle Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jst.jsf.common.runtime.internal.model.types; /** * A type info that has an associate Java class. * @author cbateman * */ public interface IClassTypeInfo { /** * The fully qualified class name, i.e. java.lang.String * * @return the fully qualified class name in dot notation * */ String getClassName(); /** * Should never return null. Return empty array if none. * * @return the list of fully-qualified super class names. List is as * calculated at IClassTypeInfo construction and no guarantee is made * (although an implementer may do so) that it will be updated if the * definition of className changes. */ String[] getSuperClasses(); /** * Should never return null. Return empty array if none. * * @return the list of fully-qualified interface names. List is as * calculated at IClassTypeInfo construction and no guarantee is made * (although an implementer may do so) that it will be updated if the * definition of className changes. */ String[] getInterfaces(); /** * @param checkType * @return true if checkType is in the set comprised of getSuperClasses()+getInterfaces() */ boolean isInstanceOf(final String checkType); }