Class Classpath
java.lang.Object
org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
org.gradle.plugins.ide.eclipse.model.Classpath
- All Implemented Interfaces:
org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObject
public class Classpath
extends org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
Represents the customizable elements of an eclipse classpath file. (via XML hooks everything is customizable).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fileReference
(Object reference) Creates a newFileReference
instance.protected String
int
hashCode()
protected void
void
setEntries
(List<ClasspathEntry> entries) protected void
toString()
Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction
Methods inherited from class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
load, loadDefaults, store
-
Constructor Details
-
Classpath
public Classpath(org.gradle.internal.xml.XmlTransformer xmlTransformer, org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory fileReferenceFactory) -
Classpath
public Classpath(org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory fileReferenceFactory) -
Classpath
public Classpath()
-
-
Method Details
-
getEntries
-
setEntries
-
getDefaultResourceName
- Specified by:
getDefaultResourceName
in classorg.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
load
- Overrides:
load
in classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
configure
-
store
- Overrides:
store
in classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fileReference
Creates a newFileReference
instance.The created object can be used to configure custom source or javadoc location on
Library
and onVariable
objects.This method can receive either String or File instances.
- Parameters:
reference
- The object to transform into a new file reference. Can be instance of File or String.- Returns:
- The new file reference.
- See Also:
-