⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iclasspathentryvisitor.java

📁 eclipseme的最新版本的source,欢迎j2me程序员使用
💻 JAVA
字号:
/**
 * Copyright (c) 2003-2005 Craig Setera
 * All Rights Reserved.
 * Licensed under the Eclipse Public License - v 1.0
 * For more information see http://www.eclipse.org/legal/epl-v10.html
 */
package eclipseme.core.internal.utils;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;

/**
 * Instances of this interface are called at appropriate times
 * to visit the classpath entries as they are traversed.  At any
 * time, each method may return <code>false</code> to stop traversing
 * that part of the classpath entry tree.
 * <p />
 * Copyright (c) 2003-2005 Craig Setera<br>
 * All Rights Reserved.<br>
 * Licensed under the Eclipse Public License - v 1.0<p/>
 * <br>
 * $Revision: 1.5 $
 * <br>
 * $Date: 2005/12/02 02:22:11 $
 * <br>
 * @author Craig Setera
 */
public interface IClasspathEntryVisitor {
	/**
	 * Visit a classpath entry container beginning. 
	 * Return a boolean value specifying whether to resolve the entry
	 * and recursively visit the resolved container's contents.
	 * 
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param containerPath
	 * @param monitor
	 * 
	 * @return
	 * @throws CoreException
	 */
	public boolean visitContainerBegin(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		IPath containerPath, 
		IProgressMonitor monitor)
			throws CoreException;
	
	/**
	 * Visit a classpath entry container ending. 
	 * 
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param containerPath
	 * @param monitor
	 * 
	 * @return
	 * @throws CoreException
	 */
	public void visitContainerEnd(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		IPath containerPath, 
		IProgressMonitor monitor)
			throws CoreException;
	
	/**
	 * Visit a classpath library entry.
	 *
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param monitor
	 * 
	 * @throws CoreException
	 */
	public void visitLibraryEntry(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		IProgressMonitor monitor)
			throws CoreException;
	
	/**
	 * Visit a classpath project entry.
	 * Return a boolean value specifying whether to resolve the entry
	 * and recursively visit the resolved entry.
	 * 
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param classpathProject
	 * @param monitor
	 * 
	 * @return
	 * @throws CoreException
	 */
	public boolean visitProject(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		IJavaProject classpathProject, 
		IProgressMonitor monitor)
			throws CoreException;
	
	/**
	 * Visit a classpath source entry.
	 * 
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param monitor
	 * 
	 * @throws CoreException
	 */
	public void visitSourceEntry(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		IProgressMonitor monitor)
			throws CoreException;

	/**
	 * Visit a classpath variable name entry.
	 * Return a boolean value specifying whether to resolve the entry
	 * and recursively visit the resolved entry.
	 * 
	 * @param entry the classpath entry representing this container
	 * @param javaProject
	 * @param variableName
	 * @param monitor
	 * 
	 * @return
	 * @throws CoreException
	 */
	public boolean visitVariable(
		IClasspathEntry entry, 
		IJavaProject javaProject,
		String variableName, IProgressMonitor monitor)
			throws CoreException;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -