1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpeclipse.builder;
13 import org.eclipse.core.resources.IContainer;
14 import org.eclipse.core.runtime.IPath;
16 public abstract class ClasspathLocation {
18 static ClasspathLocation forSourceFolder(IContainer sourceFolder, IContainer outputFolder, char[][] exclusionPatterns) {
19 return new ClasspathMultiDirectory(sourceFolder, outputFolder, exclusionPatterns);
22 public static ClasspathLocation forBinaryFolder(IContainer binaryFolder, boolean isOutputFolder) {
23 return new ClasspathDirectory(binaryFolder, isOutputFolder);
26 //static ClasspathLocation forLibrary(String libraryPathname) {
27 // return new ClasspathJar(libraryPathname);
30 //static ClasspathLocation forLibrary(IFile library) {
31 // return new ClasspathJar(library);
34 //public abstract NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String qualifiedBinaryFileName);
36 public abstract IPath getProjectRelativePath();
38 public boolean isOutputFolder() {
42 public abstract boolean isPackage(String qualifiedPackageName);
44 // free anything which is not required when the state is saved
45 public void cleanup() {
47 // reset any internal caches before another compile loop starts