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.
Since:
1.0
  • Field Details

    • COMPONENT_NON_DEPENDENCY_ATTRIBUTE

      public static final String COMPONENT_NON_DEPENDENCY_ATTRIBUTE
      The component non dependency attribute.
      Since:
      1.0
      See Also:
    • COMPONENT_DEPENDENCY_ATTRIBUTE

      public static final String COMPONENT_DEPENDENCY_ATTRIBUTE
      The component dependency attribute.
      Since:
      1.0
      See Also:
    • path

      protected String path
      The path.
      Since:
      2.14
    • exported

      protected boolean exported
      The exported.
      Since:
      2.14
    • accessRules

      protected Set<AccessRule> accessRules
      The access rules.
      Since:
      2.14
    • entryAttributes

      protected final Map<String,Object> entryAttributes
      The entry attributes.
      Since:
      2.14
  • Constructor Details

    • AbstractClasspathEntry

      public AbstractClasspathEntry(Node node)
      Creates a new AbstractClasspathEntry.
      Since:
      1.0
    • AbstractClasspathEntry

      public AbstractClasspathEntry(String path)
      Creates a new AbstractClasspathEntry.
      Since:
      1.0
  • Method Details

    • getPath

      public String getPath()
      Returns the path.
      Since:
      1.0
    • setPath

      public void setPath(String path)
      Sets the path.
      Since:
      1.0
    • 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

      public Set<AccessRule> getAccessRules()
      Returns the access rules.
      Since:
      1.0
    • setAccessRules

      public void setAccessRules(Set<AccessRule> accessRules)
      Sets the access rules.
      Since:
      1.0
    • getEntryAttributes

      public Map<String,Object> getEntryAttributes()
      Returns the entry attributes.
      Since:
      1.0
    • getNativeLibraryLocation

      public String getNativeLibraryLocation()
      Returns the native library location.
      Since:
      1.0
    • setNativeLibraryLocation

      public void setNativeLibraryLocation(String location)
      Sets the native library location.
      Since:
      1.0
    • appendNode

      public void appendNode(Node node)
      Description copied from interface: ClasspathEntry
      Append node.
      Specified by:
      appendNode in interface ClasspathEntry
    • addClasspathEntry

      protected Node addClasspathEntry(Node node, Map<String,?> attributes)
      Add classpath entry.
      Since:
      1.0
    • normalizePath

      protected String normalizePath(String path)
      Normalize path.
      Since:
      1.0
    • writeEntryAttributes

      public void writeEntryAttributes(Node node)
      Write entry attributes.
      Since:
      1.0
    • 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