blob: 45c536941d0b44f24e926337f6a977ba5f7a9f9d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2007 Oracle Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Cameron Bateman/Oracle - initial API and implementation
*
********************************************************************************/
package org.eclipse.jst.jsf.context.symbol.source;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jst.jsf.context.symbol.ISymbol;
/**
* Defines a provider that acts as source of symbols. The
* implementor is usually context specific
*
* <p><b>Provisional API - subject to change</b></p>
*
* @author cbateman
*
*/
public interface ISymbolSourceProvider
{
/**
* @param context
* @param symbolScopeMask - a mask resulting for ORing the SYMBOL_SCOPE_*
* constants to indicate what scopes to retrieve symbols for.
* @return all symbols in context matching symbolScopeMask
*/
ISymbol[] getSymbols(IAdaptable context, int symbolScopeMask);
/**
* @param prefix
* @param context
* @param symbolScopeMask a mask resulting for ORing the SYMBOL_SCOPE_*
* @return the sub-set of getSymbols that conforms
* to String.startsWith(prefix) in context matching symbolScopeMask.
*/
ISymbol[] getSymbols(String prefix, IAdaptable context, int symbolScopeMask);
/**
* @param context
* @return true if this provider has symbols for this context
*/
boolean isProvider(IAdaptable context);
}