public final class ClassPathModifier extends ProjectClassPathModifierImplementation
Modifier and Type | Class and Description |
---|---|
static interface |
ClassPathModifier.Callback
Callback to customize classpath modifier behaviour.
|
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
ADD_NO_HEURISTICS |
static int |
REMOVE |
Constructor and Description |
---|
ClassPathModifier(Project project,
UpdateHelper helper,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathSupport.Callback cpSupportCallback,
ClassPathModifier.Callback cpModifierCallback,
ClassPathUiSupport.Callback cpUiSupportCallback)
Creates a new instance of J2SEProjectClassPathModifier
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type) |
boolean |
addLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type) |
boolean |
addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type) |
boolean |
addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type,
int operation) |
boolean |
addRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type) |
boolean |
addRoots(URL[] classPathRoots,
String classPathProperty) |
ClassPathSupport |
getClassPathSupport() |
String[] |
getExtensibleClassPathTypes(SourceGroup sg) |
SourceGroup[] |
getExtensibleSourceGroups() |
boolean |
removeAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type) |
boolean |
removeLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type) |
boolean |
removeRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type) |
boolean |
removeRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type) |
addProjects, convertURLsToURIs, performSharabilityHeuristics
public static final int ADD
public static final int ADD_NO_HEURISTICS
public static final int REMOVE
public ClassPathModifier(Project project, UpdateHelper helper, PropertyEvaluator eval, ReferenceHelper refHelper, ClassPathSupport.Callback cpSupportCallback, ClassPathModifier.Callback cpModifierCallback, ClassPathUiSupport.Callback cpUiSupportCallback)
public SourceGroup[] getExtensibleSourceGroups()
getExtensibleSourceGroups
in class ProjectClassPathModifierImplementation
public String[] getExtensibleClassPathTypes(SourceGroup sg)
getExtensibleClassPathTypes
in class ProjectClassPathModifierImplementation
public boolean removeRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
removeRoots
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean removeRoots(URI[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
removeRoots
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean addRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
addRoots
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean addRoots(URL[] classPathRoots, String classPathProperty) throws IOException, UnsupportedOperationException
public boolean addRoots(URI[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
addRoots
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean addRoots(URI[] classPathRoots, SourceGroup sourceGroup, String type, int operation) throws IOException, UnsupportedOperationException
public boolean removeAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
removeAntArtifacts
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean addAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
addAntArtifacts
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean removeLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
removeLibraries
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public boolean addLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException
addLibraries
in class ProjectClassPathModifierImplementation
IOException
UnsupportedOperationException
public ClassPathSupport getClassPathSupport()