|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ant4eclipse.tools.resolver.AbstractClasspathResolver
public abstract class AbstractClasspathResolver
Abstract base class for classpath resolver.
Constructor Summary | |
---|---|
protected |
AbstractClasspathResolver(TargetPlatform targetPlatform,
boolean relative,
boolean runtime)
Creates a new instance of type AbstractClasspathResolver. |
protected |
AbstractClasspathResolver(Workspace workspace,
boolean relative,
boolean runtime)
Creates a new instance of type AbstractClasspathResolver. |
Method Summary | |
---|---|
void |
addResolvedPathEntries(ResolvedPathEntry[] entries)
|
void |
addResolvedPathEntry(ResolvedPathEntry entry)
|
EclipseProject |
getCurrentProject()
Returns the currently used project. |
ResolvedPathEntry[] |
getResolvedPathEntries()
Returns a list of resolved path entries. |
TargetPlatform |
getTargetPlatform()
Returns the target platform. |
Workspace |
getWorkspace()
Returns the workspace. |
boolean |
hasCurrentProject()
|
boolean |
isCurrentProjectRoot()
Returns true if the currently used project is also the root project. |
boolean |
isRelative()
Returns whether the classpath should be resolved relative or absolute. |
boolean |
isRuntime()
Returns whether the classpath is a runtime classpath or not. |
protected void |
resolveAbsoluteResource(java.io.File file)
Resolves an absolute resource. |
protected void |
resolveContainer(EclipseClasspathEntry entry)
Resolves a container references. |
protected void |
resolveLibrary(EclipseClasspathEntry entry)
Resolves a library reference. |
void |
resolveProjectClasspath(EclipseProject project)
Resolves the classpath for a (java-)project. |
protected void |
resolveSource(EclipseClasspathEntry entry)
|
protected void |
resolveWorkspaceResource(java.lang.String path)
Modifies the resolved classpath for the resource with the specified path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractClasspathResolver(TargetPlatform targetPlatform, boolean relative, boolean runtime)
targetPlatform
- the target platformrelative
- whether the classpath should be resolved relative or absoluteruntime
- whether the classpath is a runtime classpath or notprotected AbstractClasspathResolver(Workspace workspace, boolean relative, boolean runtime)
workspace
- the workspacerelative
- whether the classpath should be resolved relative or absoluteruntime
- whether the classpath is a runtime classpath or notMethod Detail |
---|
public final boolean isRelative()
public final boolean isRuntime()
public final TargetPlatform getTargetPlatform()
public final Workspace getWorkspace()
public final void addResolvedPathEntry(ResolvedPathEntry entry)
entry
- public final void addResolvedPathEntries(ResolvedPathEntry[] entries)
entries
- public final ResolvedPathEntry[] getResolvedPathEntries()
public final boolean isCurrentProjectRoot()
public final EclipseProject getCurrentProject()
public final boolean hasCurrentProject()
public final void resolveProjectClasspath(EclipseProject project) throws FileParserException
project
- the (java-)project which classpath should be resolved.
FileParserException
- Parsing failed for some reason.protected void resolveSource(EclipseClasspathEntry entry)
entry
- protected final void resolveContainer(EclipseClasspathEntry entry) throws FileParserException
entry
- The classpath entry that shall be resolved.
FileParserException
- Parsing failed for some reason.protected final void resolveLibrary(EclipseClasspathEntry entry)
entry
- the classpath entry that shall be resolved.protected final void resolveWorkspaceResource(java.lang.String path)
path
- the path of the resource.protected final void resolveAbsoluteResource(java.io.File file)
file
- The absolute resource.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |