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 Object implements ClasspathEntry
Common superclass for all ClasspathEntry instances.
  • Field Details

    • COMPONENT_NON_DEPENDENCY_ATTRIBUTE

      public static final String COMPONENT_NON_DEPENDENCY_ATTRIBUTE
      See Also:
    • COMPONENT_DEPENDENCY_ATTRIBUTE

      public static final String COMPONENT_DEPENDENCY_ATTRIBUTE
      See Also:
    • path

      protected String path
    • exported

      protected boolean exported
    • accessRules

      protected Set<AccessRule> accessRules
    • entryAttributes

      protected final Map<String,Object> entryAttributes
  • Constructor Details

    • AbstractClasspathEntry

      public AbstractClasspathEntry(Node node)
    • AbstractClasspathEntry

      public AbstractClasspathEntry(String path)
  • Method Details

    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • isExported

      public boolean isExported()
    • setExported

      public void setExported(boolean exported)
    • getAccessRules

      public Set<AccessRule> getAccessRules()
    • setAccessRules

      public void setAccessRules(Set<AccessRule> accessRules)
    • getEntryAttributes

      public Map<String,Object> getEntryAttributes()
    • getNativeLibraryLocation

      public String getNativeLibraryLocation()
    • setNativeLibraryLocation

      public void setNativeLibraryLocation(String location)
    • appendNode

      public void appendNode(Node node)
      Specified by:
      appendNode in interface ClasspathEntry
    • addClasspathEntry

      protected Node addClasspathEntry(Node node, Map<String,?> attributes)
    • normalizePath

      protected String normalizePath(String path)
    • writeEntryAttributes

      public void writeEntryAttributes(Node node)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object