public class ResolvedPathEntry
extends java.lang.Object
Constructor and Description |
---|
ResolvedPathEntry(EclipseProject eclipseProject,
EclipseClasspathEntry entry)
Creates a new instance of type ResolvedClasspathEntry.
|
ResolvedPathEntry(EclipseProject eclipseProject,
java.io.File entry)
Creates a new instance of type ResolvedClasspathEntry.
|
ResolvedPathEntry(EclipseProject eclipseProject,
RuntimeClasspathEntry entry)
Creates a new instance of type ResolvedClasspathEntry.
|
ResolvedPathEntry(java.io.File entry)
Creates a new instance of type ResolvedClasspathEntry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
EclipseProject |
getDeclaringProject()
Returns the eclipse project that has defined this classpath entry
|
java.lang.String |
getPath()
Returns the path that describes the classpath entry.
|
java.io.File |
getResolvedEntryAsFile()
Returns the resolved classpath entry.
|
boolean |
hasDeclaringProject()
Returns true if this entry is related to a declaring project.
|
int |
hashCode() |
boolean |
isContainer()
Returns true, if the classpath entry is not resolved and is of type
container.
|
boolean |
isResolved()
Returns whether the classpath entry is resolved.
|
boolean |
isVariable()
Returns true, if the classpath entry is not resolved and is of type
variable.
|
java.lang.String |
toString() |
public ResolvedPathEntry(java.io.File entry)
entry
- the file that is represented by the classpath entry.public ResolvedPathEntry(EclipseProject eclipseProject, java.io.File entry)
eclipseProject
- The project in which this classpath has been definedentry
- the file that is represented by the classpath entry.public ResolvedPathEntry(EclipseProject eclipseProject, EclipseClasspathEntry entry)
If the EclipseClasspathEntry is of type RCE_CONTAINER it's path will be interpreted as a reference to an ant Path-object.
eclipseProject
- The project in which this classpath has been definedentry
- the classpath entry that should be resolved.public ResolvedPathEntry(EclipseProject eclipseProject, RuntimeClasspathEntry entry)
If the RuntimeClasspathEntry is of type RCE_CONTAINER it's path will be interpreted as a reference to an ant Path-object.
eclipseProject
- The project in which this classpath has been definedentry
- the runtime classpath entry that should be resolved.public final java.io.File getResolvedEntryAsFile()
isResolved()
returns false
, an
exception will be thrown.public final boolean isResolved()
public final boolean isContainer()
public final boolean isVariable()
public final java.lang.String getPath()
public EclipseProject getDeclaringProject()
public boolean hasDeclaringProject()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object