Class AbstractClasspathEntry
- java.lang.Object
-
- org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry
-
- All Implemented Interfaces:
ClasspathEntry
- Direct Known Subclasses:
AbstractLibrary,Container,ProjectDependency,SourceFolder
public abstract class AbstractClasspathEntry extends java.lang.Object implements ClasspathEntry
Common superclass for allClasspathEntryinstances.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<AccessRule>accessRulesstatic java.lang.StringCOMPONENT_DEPENDENCY_ATTRIBUTEstatic java.lang.StringCOMPONENT_NON_DEPENDENCY_ATTRIBUTEprotected java.util.Map<java.lang.String,java.lang.Object>entryAttributesprotected booleanexportedprotected java.lang.Stringpath
-
Constructor Summary
Constructors Constructor Description AbstractClasspathEntry(Node node)AbstractClasspathEntry(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeaddClasspathEntry(Node node, java.util.Map<java.lang.String,?> attributes)voidappendNode(Node node)booleanequals(java.lang.Object o)java.util.Set<AccessRule>getAccessRules()java.util.Map<java.lang.String,java.lang.Object>getEntryAttributes()java.lang.StringgetNativeLibraryLocation()java.lang.StringgetPath()inthashCode()booleanisExported()protected java.lang.StringnormalizePath(java.lang.String path)voidsetAccessRules(java.util.Set<AccessRule> accessRules)voidsetExported(boolean exported)voidsetNativeLibraryLocation(java.lang.String location)voidsetPath(java.lang.String path)java.lang.StringtoString()voidwriteEntryAttributes(Node node)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gradle.plugins.ide.eclipse.model.ClasspathEntry
getKind
-
-
-
-
Field Detail
-
COMPONENT_NON_DEPENDENCY_ATTRIBUTE
public static final java.lang.String COMPONENT_NON_DEPENDENCY_ATTRIBUTE
- See Also:
- Constant Field Values
-
COMPONENT_DEPENDENCY_ATTRIBUTE
public static final java.lang.String COMPONENT_DEPENDENCY_ATTRIBUTE
- See Also:
- Constant Field Values
-
path
protected java.lang.String path
-
exported
protected boolean exported
-
accessRules
protected java.util.Set<AccessRule> accessRules
-
entryAttributes
protected final java.util.Map<java.lang.String,java.lang.Object> entryAttributes
-
-
Constructor Detail
-
AbstractClasspathEntry
public AbstractClasspathEntry(Node node)
-
AbstractClasspathEntry
public AbstractClasspathEntry(java.lang.String path)
-
-
Method Detail
-
getPath
public java.lang.String getPath()
-
setPath
public void setPath(java.lang.String path)
-
isExported
public boolean isExported()
-
setExported
public void setExported(boolean exported)
-
getAccessRules
public java.util.Set<AccessRule> getAccessRules()
-
setAccessRules
public void setAccessRules(java.util.Set<AccessRule> accessRules)
-
getEntryAttributes
public java.util.Map<java.lang.String,java.lang.Object> getEntryAttributes()
-
getNativeLibraryLocation
public java.lang.String getNativeLibraryLocation()
-
setNativeLibraryLocation
public void setNativeLibraryLocation(java.lang.String location)
-
appendNode
public void appendNode(Node node)
- Specified by:
appendNodein interfaceClasspathEntry
-
addClasspathEntry
protected Node addClasspathEntry(Node node, java.util.Map<java.lang.String,?> attributes)
-
normalizePath
protected java.lang.String normalizePath(java.lang.String path)
-
writeEntryAttributes
public void writeEntryAttributes(Node node)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-