Klasse ModulePathContainer
- Alle implementierten Schnittstellen:
IClasspathContainer
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IClasspathContainer
K_APPLICATION, K_DEFAULT_SYSTEM, K_SYSTEM -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAnswers the set of classpath entries this container is mapping to.Answers a readable description of this containerintgetKind()Answers the kind of this container.org.eclipse.core.runtime.IPathgetPath()Answers the container path identifying this container.
-
Konstruktordetails
-
ModulePathContainer
-
-
Methodendetails
-
getClasspathEntries
Beschreibung aus Schnittstelle kopiert:IClasspathContainerAnswers the set of classpath entries this container is mapping to.The set of entries associated with a classpath container may contain any of the following:
- library entries (
CPE_LIBRARY) - project entries (
CPE_PROJECT)
A library entry can reference other libraries through the Class-Path section of the JAR's MANIFEST.MF file. If the container wants such referenced entries to be part of the classpath, the container must explicitly add them to the result.
This method is called by the Java model when it needs to resolve this classpath container entry into a list of library and project entries. The method is typically called exactly once for a given Java project, and the resulting list of entries cached internally by the Java model. This method must not be called by other clients.
There are a wide variety of conditions under which this method may be invoked. To ensure that the implementation does not interfere with correct functioning of the Java model, the implementation should use only the following Java model APIs:
JavaCore.newLibraryEntry(IPath, IPath, IPath, boolean)and variantsJavaCore.newProjectEntry(IPath, boolean)and variantsJavaCore.create(org.eclipse.core.resources.IWorkspaceRoot)JavaCore.create(org.eclipse.core.resources.IProject)JavaCore.getReferencedClasspathEntries(IClasspathEntry, IJavaProject)withnullas projectIJavaModel.getJavaProjects()IJavaProject.getRawClasspath()IJavaProject.readRawClasspath()IJavaProject.getOutputLocation()IJavaProject.readOutputLocation()- Java element operations marked as "handle-only"
The effects of using other Java model APIs are unspecified.
- Angegeben von:
getClasspathEntriesin SchnittstelleIClasspathContainer- Gibt zurück:
- IClasspathEntry[] - the classpath entries this container represents
- Siehe auch:
- library entries (
-
getDescription
Beschreibung aus Schnittstelle kopiert:IClasspathContainerAnswers a readable description of this container- Angegeben von:
getDescriptionin SchnittstelleIClasspathContainer- Gibt zurück:
- String - a string description of the container
-
getKind
public int getKind()Beschreibung aus Schnittstelle kopiert:IClasspathContainerAnswers the kind of this container. Can be either:K_APPLICATIONif this container maps to an application libraryK_SYSTEMif this container maps to a system libraryK_DEFAULT_SYSTEMif this container maps to a default system library (library implicitly contributed by the runtime).
- Angegeben von:
getKindin SchnittstelleIClasspathContainer- Gibt zurück:
- the kind of this container
-
getPath
public org.eclipse.core.runtime.IPath getPath()Beschreibung aus Schnittstelle kopiert:IClasspathContainerAnswers the container path identifying this container. A container path is formed by a first ID segment followed with extra segments, which can be used as additional hints for resolving to this container.The container ID is also used to identify a
ClasspathContainerInitializerregistered on the extension point "org.aspectj.org.eclipse.jdt.core.classpathContainerInitializer", which can be invoked if needing to resolve the container before it is explicitly set.- Angegeben von:
getPathin SchnittstelleIClasspathContainer- Gibt zurück:
- IPath - the container path that is associated with this container
-