Class AbstractClasspathEntry
java.lang.Object
org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry
- All Implemented Interfaces:
ClasspathEntry
- Direct Known Subclasses:
AbstractLibrary, Container, ProjectDependency, SourceFolder
Common superclass for all
ClasspathEntry instances.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<AccessRule> The access rules.static final StringThe component dependency attribute.static final StringThe component non dependency attribute.The entry attributes.protected booleanThe exported.protected StringThe path. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractClasspathEntry(Node node) Creates a newAbstractClasspathEntry.AbstractClasspathEntry(String path) Creates a newAbstractClasspathEntry. -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeaddClasspathEntry(Node node, Map<String, ?> attributes) Add classpath entry.voidappendNode(Node node) Append node.booleanReturns the access rules.Returns the entry attributes.Returns the native library location.getPath()Returns the path.inthashCode()booleanReturns whether exported is set.protected StringnormalizePath(String path) Normalize path.voidsetAccessRules(Set<AccessRule> accessRules) Sets the access rules.voidsetExported(boolean exported) Sets the exported.voidsetNativeLibraryLocation(String location) Sets the native library location.voidSets the path.toString()voidwriteEntryAttributes(Node node) Write entry attributes.Methods inherited from interface ClasspathEntry
getKind
-
Field Details
-
COMPONENT_NON_DEPENDENCY_ATTRIBUTE
The component non dependency attribute.- Since:
- 1.0
- See Also:
-
COMPONENT_DEPENDENCY_ATTRIBUTE
The component dependency attribute.- Since:
- 1.0
- See Also:
-
path
-
exported
protected boolean exportedThe exported.- Since:
- 2.14
-
accessRules
-
entryAttributes
-
-
Constructor Details
-
AbstractClasspathEntry
-
AbstractClasspathEntry
-
-
Method Details
-
getPath
-
setPath
-
isExported
public boolean isExported()Returns whether exported is set.- Since:
- 1.0
-
setExported
public void setExported(boolean exported) Sets the exported.- Since:
- 1.0
-
getAccessRules
-
setAccessRules
-
getEntryAttributes
-
getNativeLibraryLocation
-
setNativeLibraryLocation
-
appendNode
Description copied from interface:ClasspathEntryAppend node.- Specified by:
appendNodein interfaceClasspathEntry
-
addClasspathEntry
-
normalizePath
-
writeEntryAttributes
-
equals
-
hashCode
-
toString
-