1 17 package org.eclipse.jdt.core; 18 19 import java.util.Map ; 20 21 import org.eclipse.core.resources.IProject; 22 import org.eclipse.core.resources.IResource; 23 import org.eclipse.core.runtime.IProgressMonitor; 24 import org.eclipse.core.runtime.IPath; 25 26 import org.eclipse.jdt.core.eval.IEvaluationContext; 27 28 58 public interface IJavaProject extends IParent, IJavaElement, IOpenable { 59 60 69 IClasspathEntry decodeClasspathEntry(String encodedEntry); 70 71 78 String encodeClasspathEntry(IClasspathEntry classpathEntry); 79 80 101 IJavaElement findElement(IPath path) throws JavaModelException; 102 103 128 IJavaElement findElement(IPath path, WorkingCopyOwner owner) throws JavaModelException; 129 130 144 IPackageFragment findPackageFragment(IPath path) throws JavaModelException; 145 146 160 IPackageFragmentRoot findPackageFragmentRoot(IPath path) 161 throws JavaModelException; 162 180 IPackageFragmentRoot[] findPackageFragmentRoots(IClasspathEntry entry); 181 201 IType findType(String fullyQualifiedName) throws JavaModelException; 202 216 IType findType(String fullyQualifiedName, IProgressMonitor progressMonitor) throws JavaModelException; 217 241 IType findType(String fullyQualifiedName, WorkingCopyOwner owner) throws JavaModelException; 242 258 IType findType(String fullyQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor) throws JavaModelException; 259 284 IType findType(String packageName, String typeQualifiedName) throws JavaModelException; 285 300 IType findType(String packageName, String typeQualifiedName, IProgressMonitor progressMonitor) throws JavaModelException; 301 329 IType findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner) throws JavaModelException; 330 346 IType findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor) throws JavaModelException; 347 348 357 IPackageFragmentRoot[] getAllPackageFragmentRoots() throws JavaModelException; 358 359 377 Object [] getNonJavaResources() throws JavaModelException; 378 379 392 String getOption(String optionName, boolean inheritJavaCoreOptions); 393 394 408 Map getOptions(boolean inheritJavaCoreOptions); 409 410 430 IPath getOutputLocation() throws JavaModelException; 431 432 441 IPackageFragmentRoot getPackageFragmentRoot(String jarPath); 442 443 454 IPackageFragmentRoot getPackageFragmentRoot(IResource resource); 455 456 469 IPackageFragmentRoot[] getPackageFragmentRoots() throws JavaModelException; 470 471 489 IPackageFragmentRoot[] getPackageFragmentRoots(IClasspathEntry entry); 490 491 503 IPackageFragment[] getPackageFragments() throws JavaModelException; 504 505 512 IProject getProject(); 513 514 544 IClasspathEntry[] getRawClasspath() throws JavaModelException; 545 546 557 String [] getRequiredProjectNames() throws JavaModelException; 558 559 591 IClasspathEntry[] getResolvedClasspath(boolean ignoreUnresolvedEntry) 592 throws JavaModelException; 593 594 598 boolean hasBuildState(); 599 600 610 boolean hasClasspathCycle(IClasspathEntry[] entries); 611 623 boolean isOnClasspath(IJavaElement element); 624 636 boolean isOnClasspath(IResource resource); 637 638 642 IEvaluationContext newEvaluationContext(); 643 644 656 ITypeHierarchy newTypeHierarchy(IRegion region, IProgressMonitor monitor) 657 throws JavaModelException; 658 659 680 ITypeHierarchy newTypeHierarchy(IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor) 681 throws JavaModelException; 682 683 698 ITypeHierarchy newTypeHierarchy( 699 IType type, 700 IRegion region, 701 IProgressMonitor monitor) 702 throws JavaModelException; 703 704 728 ITypeHierarchy newTypeHierarchy( 729 IType type, 730 IRegion region, 731 WorkingCopyOwner owner, 732 IProgressMonitor monitor) 733 throws JavaModelException; 734 735 765 IPath readOutputLocation(); 766 767 808 IClasspathEntry[] readRawClasspath(); 809 810 821 void setOption(String optionName, String optionValue); 822 823 836 void setOptions(Map newOptions); 837 838 868 void setOutputLocation(IPath path, IProgressMonitor monitor) 869 throws JavaModelException; 870 871 910 void setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, boolean canModifyResources, IProgressMonitor monitor) throws JavaModelException; 911 912 948 void setRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, IProgressMonitor monitor) throws JavaModelException; 949 950 980 void setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor) 981 throws JavaModelException; 982 983 1031 void setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor) 1032 throws JavaModelException; 1033} 1034 | Popular Tags |